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