private void Start() { transform.position = LevelController.PhysicalLocation(StartMapPos.x, StartMapPos.y); reachedFarGoal = false; currentGoal = Goals.Goal1; CurrentTile = Goals.Level.MapTile(gameObject); CurrentTile.AddCharacter(this); }
private void UpdateTile() { Tile t = Goals.Level.MapTile(gameObject); if (t != CurrentTile) { CurrentTile.RemoveCharacter(this); CurrentTile = t; CurrentTile.AddCharacter(this); } }