示例#1
0
 public void stop()
 {
     currentAction.destory = true;
     currentAction         = IdleAction.GetIdleAction(-1f, ani);
     this.runAction(this.gameObject, currentAction, this);
     // 永久站立
 }
示例#2
0
 public void idle()
 {
     currentAction = IdleAction.GetIdleAction(Random.Range(1, 1.5f), ani);
     this.runAction(this.gameObject, currentAction, this);
 }
示例#3
0
 public void idle()
 {
     baseAction = IdleAction.GetIdleAction(Random.Range(1, 1.5f), animator);
     this.runAction(this.gameObject, baseAction, this);
 }
示例#4
0
 public void stop()
 {
     baseAction.destory = true;
     baseAction         = IdleAction.GetIdleAction(-1f, animator);
     this.runAction(this.gameObject, baseAction, this);
 }
示例#5
0
 public void stop()
 {
     action.destroy = true;
     action         = IdleAction.GetIdleAction(-1f, animator);
     this.RunAction(this.gameObject, action, this);
 }