private void IsTouched(TouchClickable touch) { if (touch.objectId == this.gameObject.GetInstanceID () && PlayerCanClickBreak()) { Destroy (); LevelManager.player.canBreakByClick--; } }
private void IsTouched(TouchClickable touch) { if (touch.objectId == this.gameObject.GetInstanceID ()) { DisableAngel (); // Ajout du temps pour l'ange LevelManager.player.GetLastWish ().AddTime (2f); // Effet d'explosion GameObject dust = PoolingManager.current.Spawn("AerialDust"); if (dust != null) { dust.transform.position = myTransform.position; dust.transform.rotation = Quaternion.identity; dust.gameObject.SetActive (true); } } }