示例#1
0
 // Use this for initialization
 void Start()
 {
     anim          = gameObject.GetComponent <Animator>();
     swordCollider = transform.GetComponentInChildren <SwordCollideDetector>();
     attack1Button = new Command_Input.Attack_1(this);
     currentState  = Player.State.Idle;
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     anim = gameObject.GetComponent<Animator>();
     swordCollider = transform.GetComponentInChildren<SwordCollideDetector>();
     attack1Button = new Command_Input.Attack_1(this);
     currentState = Player.State.Idle;
 }