Ejemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Sonic"))
     {
         controller.ChangeTimeLimit(2f);
         Destroy(gameObject);
     }
 }
Ejemplo n.º 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Sonic"))
     {
         if (!DashSceneController.isInvincible)
         {
             controller.ChangeTimeLimit(-10f);
         }
         Destroy(gameObject);
     }
 }