Example #1
0
 void LateUpdate()
 {
     //Kill player if time expires
     if (TimeTracker.getTimeAsFloat() <= 0 && !GetIsDead() && !killedByTime)
     {
         killedByTime = true;
         Invoke("resetKilledByTime", 6);
         StartCoroutine(TakeDamage(100));
     }
 }