Exemplo n.º 1
0
 void SetFalling()
 {
     foreach (Collider c in GetComponentsInChildren <Collider>())
     {
         c.enabled   = true;
         c.isTrigger = true;
         if (c.GetComponent <Rigidbody>())
         {
             c.GetComponent <Rigidbody>().useGravity = true;
         }
     }
     GetComponentInChildren <WeaponInfo>().Falling();
     timer = Time.time + fallTime;
     state = DecayState.FALLING;
 }
Exemplo n.º 2
0
 public void Activate()
 {
     timer = decayTime + Time.time;
     state = DecayState.DEAD;
 }