Ejemplo n.º 1
0
 public virtual void Knockout()
 {
     state = State.UNCONSCIOUS;
     if (puppetMaster)
         puppetMaster.Kill(stateSettings);
     disableBehaviours();
 }
Ejemplo n.º 2
0
 public virtual void Kill()
 {
     state = State.DEAD;
     if (puppetMaster)
         puppetMaster.Kill(stateSettings);
     disableBehaviours();
 }
Ejemplo n.º 3
0
 public virtual void Kill()
 {
     state = State.DEAD;
     if (puppetMaster)
     {
         puppetMaster.Kill(stateSettings);
     }
     disableBehaviours();
 }
Ejemplo n.º 4
0
 public virtual void Knockout()
 {
     state = State.UNCONSCIOUS;
     if (puppetMaster)
     {
         puppetMaster.Kill(stateSettings);
     }
     disableBehaviours();
 }
Ejemplo n.º 5
0
 public virtual void Resurrect(float newHealth)
 {
     if (newHealth <= 0)
         return;
     state = State.ALIVE;
     health = Mathf.Max(newHealth, healthMax);
     if (puppetMaster)
         puppetMaster.Resurrect();
     enableBehaviours();
 }
Ejemplo n.º 6
0
 public virtual void Resurrect(float newHealth)
 {
     if (newHealth <= 0)
     {
         return;
     }
     state  = State.ALIVE;
     health = Mathf.Max(newHealth, healthMax);
     if (puppetMaster)
     {
         puppetMaster.Resurrect();
     }
     enableBehaviours();
 }