Esempio n. 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject == level.ball.gameObject)
     {
         Particles splash = Singleton.Instanse.GetOnGoodParticles(transform.position);
         level.StartCoroutine(splash.ReturnToPool());
         gameObject.SetActive(false);
         level.OnGoodCatch(transform);
     }
 }
Esempio n. 2
0
 public static void AddParticle(Particle P)
 {
     Particles.Add(P);
 }