Example #1
0
 public override bool TriggerFirstAct()
 {
     if (m_UsingSkill)
     {
         return(false);
     }
     if (!m_HookPos.CanUseSkill())
     {
         return(false);
     }
     ;
     if (base.TriggerFirstAct())
     {
         SetRightBodyType(RigidbodyType2D.Static);
         m_PursureAct.enabled  = false;
         m_BeatBackAct.enabled = false;
         m_HookTool.gameObject.SetActive(true);
         m_HasSpeed = false;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public void StartBackAct(bool hookPlayer = false)
 {
     if (!m_StartBackStep1)
     {
         if (hookPlayer && m_HookPos.CanUseSkill())
         {
             m_Player.GetComponent <Player>().LockMove(0.5f);
         }
         m_Monster.SetAnimFloat(GameConstVal.SpeedSymbolStr, 0f);
         m_BackTime       = m_CurTime;
         m_CurTime        = -0.5f;
         m_StartBackStep1 = true;
         m_StartBackStep2 = true;
         m_HookPlayer     = hookPlayer;
     }
 }