Esempio n. 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.layer == 8)
     {
         GameObject obj = collision.gameObject;
         if (obj.CompareTag("DownEarth"))
         {
             Level_0.NewBlock = obj;
             MessageSystemGameBlock.DisableDinamicGameBlock(obj, 0);
             obj.SetActive(false);
             return;
         }
         Animator anim;
         if (anim = obj.GetComponentInChildren <Animator>())
         {
             anim.speed = 1;
         }
         obj.GetComponent <DisableGameBlock>().Disable();
     }
 }
Esempio n. 2
0
 public void Disable()
 {
     MessageSystemGameBlock.ReturnEqualGameBlock(gameObject, ref i, ref j);
     MessageSystemGameBlock.DisableDinamicGameBlock(i, j);
 }