Exemplo n.º 1
0
    public void UpdateObjective()
    {
        var position = _player._ship.FlightComputer.Data.Position;
        var mission  = _player._mission._activeMission;

        if (mission == null)
        {
            _objective.SetTarget(position, Vector2.zero, false);
        }
        else
        {
            var target = mission.Position;
            var hide   = mission._done;
            _objective.SetTarget(position, target, hide);
            _score.UpdateText(_player._mission._score);
        }
    }
Exemplo n.º 2
0
 public void UpdateAltitude()
 {
     _horizontalSpeed.UpdateText(_player._ship.FlightComputer.Data.Velocity.x);
     _verticalSpeed.UpdateText(_player._ship.FlightComputer.Data.Velocity.y);
     _altitude.UpdateText(_player._ship.FlightComputer.Data.Altitude);
 }