Example #1
0
 //public void playIdle()
 //{
 //    animator.SetTrigger(idle);
 //}
 // Use this for initialization
 void Awake()
 {
     mPKey     = KeyCode.A;
     vel       = Vector2.zero;
     animation = GetComponentInChildren <AnimationBoard>();
 }
Example #2
0
 //public void playIdle()
 //{
 //    animator.SetTrigger(idle);
 //}
 // Use this for initialization
 void Awake()
 {
     mPKey = KeyCode.A;
     vel = Vector2.zero;
     animation = GetComponentInChildren<AnimationBoard>();
 }