Beispiel #1
0
    // 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();
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     botonplay = BotonPlay.PlayInstance;
     elplayer  = Player.MyInstance;
 }
Beispiel #3
0
 // Start is called before the first frame update
 protected override void Start()
 {
     base.Start();
     boton = BotonPlay.PlayInstance;
 }