摘要: 定义unity3d鼠标有效活动区域//定义鼠标有效区域Rect screenRect = new Rect(0,0,Screen.width,Screen.height);if( !screenRect.Contains(Input.mousePosition)) return;JS调用DLL实例新建脚本,复制粘贴,哈啊哈:)import System;import System.Runtime.InteropServices;@DllImport("user32.dll")public static function MessageBox(Hwnd : int,text 阅读全文
posted @ 2011-08-17 17:17 softimagewht 阅读(281) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;public class TrailArc : MonoBehaviour{ int savedIndex; int pointIndex; // Material - Particle Shader with "Tint Color" property public Material material; // Emit public bool emit { get { return Emit; } set { Emit = value; } } bool Emit = true; boo 阅读全文
posted @ 2011-08-17 17:09 softimagewht 阅读(2770) 评论(5) 推荐(0)