Example #1
0
 public void Attacking()
 {
     tick -= Time.deltaTime;
     if (tick <= 0)
     {
         tick = 1;
         if (PlayerObject.GetState() == UnitState.alive || PlayerObject.GetState() == UnitState.clinging) // Deals the damage only if the players alive.
         {
             PlayerObject.TakeDmg(dmg, atkType);
         }
     }
 }