Esempio n. 1
0
 void OnTriggerEnter(Collider col)
 {
     if (col.gameObject.name == "Milo")
     {
         miloFlashLight.PauseCapacity = true;
         miloFlashLight.StopCoroutine(miloFlashLight.CapacityCounter());
     }
     if (col.gameObject.tag == "EnemyShadow")
     {
         Destroy(col.gameObject.transform.parent.gameObject);
     }
 }