private void Inital() { PlayerBase.Instance.Inital(); m_ani = GetComponent <Animator>(); m_Rigidbody = GetComponent <Rigidbody>(); playerAttackState = new PlayerAttackState(m_ani); playerRollingState = new PlayerRollingState(m_ani); }
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); }