Exemplo n.º 1
0
 public override void Init(GameObject playerGo, int guid)
 {
     base.Init(playerGo, guid);
     m_OriMass     = m_Rigidbody2D.mass;
     m_AtkState    = GetComponent <DeadthAtkState>();
     m_FlashState  = GetComponent <DeadthFlashState>();
     m_LockState   = GetComponent <DeadthLockState>();
     m_PursueState = GetComponent <DeadthPursueState>();
     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();
 }
Exemplo n.º 2
0
 public void SetLockState(DeadthLockState lockState)
 {
     m_LockState = lockState;
 }