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