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); } }
public static void AddParticle(Particle P) { Particles.Add(P); }