示例#1
0
 public override void Init(GameObject playerGo, int guid)
 {
     base.Init(playerGo, guid);
     m_OriMass     = m_Rigidbody2D.mass;
     m_AtkState    = GetComponent <ManiacAtkState>();
     m_FlashState  = GetComponent <ManiacFlashState>();
     m_LockState   = GetComponent <ManiacLockState>();
     m_PursueState = GetComponent <ManiacPursueState>();
     m_FlashState.Init(playerGo, this);
     m_PursueState.Init(playerGo, this);
     m_LockState.Init(playerGo, this);
     m_AtkState.Init(playerGo, this);
     m_AtkState.SetLockState(m_LockState);
     m_LockState.SetAtkState(m_AtkState);
     ChangeToFlashState();
     InitName();
 }
示例#2
0
 public void SetLockState(ManiacLockState lockState)
 {
     m_LockState = lockState;
 }