void Start()
    {
        pathfinding = new NatPathfinding(largeur, hauteur);
        body        = GetComponent <Rigidbody2D>();
        grid        = new NatGrid(largeur, hauteur, 0.5f, origine);
        //path = null;
        player = GameObject.FindGameObjectWithTag("Player");
        //elapseTime = 0;
        //randomTime = 0;

        bougerRadom();
    }
Ejemplo n.º 2
0
 void Start()
 {
     pathfinding = new NatPathfinding(largeur, hauteur);
     grid        = new NatGrid(largeur, hauteur, 0.5f, origine);
 }