Ejemplo n.º 1
0
 void Update()
 {
     if (!GCPause.getPausado())
     {
         if (!visivel)
         {
             StartCoroutine(surgir());
         }
         else
         {
             mover();
             atacar();
         }
     }
 }
Ejemplo n.º 2
0
 void Update()
 {
     if (!GCPause.getPausado())
     {
         if (desabilitarComandos)
         {
             GetComponent <Rigidbody2D>().isKinematic = true;
         }
         else
         {
             GetComponent <Rigidbody2D>().isKinematic = false;
             if (!atacando)
             {
                 mover();
             }
             if (estaNoChao)
             {
                 atacar();
             }
         }
     }
 }