예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        Instance = this;

        currentSpeed  = 0f;
        totalDistance = 0f;
    }
    // Start is called before the first frame update
    void Start()
    {
        float  disValue;
        string disUnits;

        MoonSpeedController.toDisplay(MoonSpeedController.totalDistance, out disValue, out disUnits);

        scoreText.text = $"Total Distance: {disValue:0.##} {disUnits}";
    }