示例#1
0
 /// <summary>
 /// Start the current ability.
 /// </summary>
 private void SetAbility()
 {
     // Start ability.
     if (_mutationHandlerScript.IsElephant)
     {
         _specialAbilitiesScript.ElephantAbility();
     }
     else if (_mutationHandlerScript.IsFish)
     {
         _specialAbilitiesScript.FishAbility();
     }
     else if (_mutationHandlerScript.IsHawk)
     {
         _specialAbilitiesScript.HawkAbility();
     }
     else if (_mutationHandlerScript.IsRhino)
     {
         _specialAbilitiesScript.RhinoAbility();
     }
     else if (_mutationHandlerScript.IsTurtle)
     {
         _specialAbilitiesScript.TurtleAbility();
     }
 }