Esempio n. 1
0
 private void IsTouched(TouchClickable touch)
 {
     if (touch.objectId == this.gameObject.GetInstanceID () && PlayerCanClickBreak()) {
         Destroy ();
         LevelManager.player.canBreakByClick--;
     }
 }
Esempio n. 2
0
    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);
            }
        }
    }