标签:style blog class c ext color
记录学习中的问题,时刻更新
unity获取鼠标所在位置 
BOOL GetCursorPos( 
  LPPOINT lpPoint
); 
获取鼠标所在位置,不过原点在左下角 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
yield 
return new WaitForSeconds(5);// wait for 5 
seconds等待5秒
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////获取脚本中的函数或变量
GameObject.Find("要查找的gameobject的名字").GetComponent<脚本名字>().变量或者函数 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Player 
Settings/Resolution and Presentation/ Default Orientation 中选 Landscape 
开头        
设置安卓横竖屏
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 
Plays an animation only if we are not playing it already.function 
 OnMouseEnter() { if (!animation.isPlaying) animation.Play();}第二种:// Plays an 
animation only if we are not playing it already.function  OnMouseEnter() { if 
(!animation.IsPlaying("mouseOverEffect")) 
 animation.Play("mouseOverEffect");}判断动画是否结束
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
把animationstate中的WrapMode设置为WrapMode.Loop   
设置动画循环
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
【狼】狼的unity3d脚本学习,布布扣,bubuko.com
标签:style blog class c ext color
原文地址:http://www.cnblogs.com/zhanlang96/p/3726734.html