InfoScript.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
    void Update()
    {
        string msg = "Current C: " + state.SpeedOfLight
            + "\nIncrease/Decrease with N/M"
            + "\n\nCurrent Speed: " + state.PlayerVelocity
            + "\nMove with with WASD";
        UnityEngine.UI.Text text = infoPanel.GetComponentInChildren<UnityEngine.UI.Text> ();
        text.text = msg;
    }
InfoScript