Ejemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D c)
 {
     if (c.gameObject.tag == "Player")
     {
         Debug.Log("Entered Gate");
         gameObject.SetActive(false);
         GameManager.Points(1, points);
         ExplosionSpawner.SpawnExplosion(transform.position);
     }
 }
Ejemplo n.º 2
0
 public void SpawnExplosion(Transform t)
 {
     explosionSpawner.SpawnExplosion(t);
 }
Ejemplo n.º 3
0
 void SpawnExplosion()
 {
     ExplosionSpawner.SpawnExplosion(transform.position);
 }