Beispiel #1
0
 private void Inital()
 {
     PlayerBase.Instance.Inital();
     m_ani              = GetComponent <Animator>();
     m_Rigidbody        = GetComponent <Rigidbody>();
     playerAttackState  = new PlayerAttackState(m_ani);
     playerRollingState = new PlayerRollingState(m_ani);
 }
Beispiel #2
0
 private void Inital()
 {
     PlayerBase.Instance.Inital();
     m_ani              = GetComponent <Animator>();
     m_Rigidbody        = GetComponent <Rigidbody>();
     arrowCreatePoint   = GameObject.FindGameObjectWithTag("CreatePoint").transform;
     arrowShootPoint    = GameObject.FindGameObjectWithTag("ShootPoint").transform;
     playerAttackState  = new PlayerAttackState(m_ani);
     playerRollingState = new PlayerRollingState(m_ani);
 }