Ejemplo n.º 1
0
 public void RpcReviveFromDowned(float healthPercentage, string penalties)
 {
     downedCollider.enabled = false;
     anim.SetBool("Downed", false);
     downed = false;
     if (isLocalPlayer)
     {
         characterAttacks.ResetVariables(healthPercentage);
         ResetVariables();
         if (penalties.Equals("last"))
         {
             //non applico nessuna penalty
             return;
         }
         if (penalties.Equals("all"))
         {
             RemoveAllDownedTimePenalties();
             return;
         }
         AddDownedTimePenalty();
     }
 }