// protected bool isAttacking = false; // protected Coroutine attackRoutine; // Start is called before the first frame update protected virtual void Start() { myRigidbody = GetComponent <Rigidbody2D>(); animator = GetComponent <Animator>(); pasos = dist; //pasos parte igual a la distancia para permanecer quieto cuando se presiona el boton de mover pasos cambia a 0 direction = Vector2.down; //parte en direccion hacia abajo choqueArbol = false; botonplay = BotonPlay.PlayInstance; //directionSpell = Vector2.down; posPlayer = highlightMapGround.WorldToCell(Player.MyInstance.transform.position); posVista = highlightMapGround.WorldToCell(Vista.transform.position); direVista = Vista.transform.position; queSeVe(); }
// Start is called before the first frame update void Start() { botonplay = BotonPlay.PlayInstance; elplayer = Player.MyInstance; }
// Start is called before the first frame update protected override void Start() { base.Start(); boton = BotonPlay.PlayInstance; }