예제 #1
0
 void OnDeath()
 {
     if (health <= 0)
     {
         cpManager.RespawnAtLastCheckPointPosition();
         invulnerable  = false;
         startBlinking = false;
         sprite.color  = Color.white;
         health        = 100;
     }
 }