Ejemplo n.º 1
0
    private void Start()
    {
        transform.position = LevelController.PhysicalLocation(StartMapPos.x, StartMapPos.y);
        reachedFarGoal     = false;
        currentGoal        = Goals.Goal1;

        CurrentTile = Goals.Level.MapTile(gameObject);
        CurrentTile.AddCharacter(this);
    }
Ejemplo n.º 2
0
    private void UpdateTile()
    {
        Tile t = Goals.Level.MapTile(gameObject);

        if (t != CurrentTile)
        {
            CurrentTile.RemoveCharacter(this);
            CurrentTile = t;
            CurrentTile.AddCharacter(this);
        }
    }