Example #1
0
 protected virtual void Update()
 {
     if (health.AtMax() || health.IsDead() || repairing)
     {
         canInteract = false;
     }
     else
     {
         canInteract = true;
     }
 }
Example #2
0
 protected virtual void Update()
 {
     if (health.AtMax() || beingHealed)
     {
         canInteract = false;
     }
     else
     {
         canInteract = true;
     }
 }