Exemplo n.º 1
0
 public void StopFetch()
 {
     fetchObj.GetComponent <Rigidbody>().useGravity = true;
     hasObject = false;
     state.SetState(state.stateInQueue);
     stats.IncreaseStat("speed", distance * 2);
     timer = 0;
 }
Exemplo n.º 2
0
 public void Dodge()
 {
     if (Random.Range(0, 150) < stats.mStats.agility)
     {
         dir = Mathf.Sign(Random.Range(-1, 1));
         if (stats.mStats.agility > 75)
         {
             DodgeTeleport();
         }
         else
         {
             state.SetAnimationState(MonsterState.animStates.Dodge);
         }
     }
     else
     {
         state.SetAnimationState(MonsterState.animStates.GetHit);
     }
     stats.IncreaseStat("agility", Random.Range(1, 3));
     state.SetAnimationState(MonsterState.animStates.Fight);
 }