コード例 #1
0
ファイル: GameCanvas.cs プロジェクト: blotta/click-drive
    public void OnBreakButtonPressed()
    {
        GUIInputController.ToggleBreak();

        if (GUIInputController.BreakInput)
        {
            BreakButton.GetComponentInChildren <TMP_Text>().text = "BREAKING";
        }
        else
        {
            BreakButton.GetComponentInChildren <TMP_Text>().text = "BREAK";
        }
    }
コード例 #2
0
ファイル: GameCanvas.cs プロジェクト: blotta/click-drive
    public void OnReverseButtonPressed()
    {
        GUIInputController.ToggleReverse();


        if (GUIInputController.ReverseInput)
        {
            ReverseButton.GetComponentInChildren <TMP_Text>().text = "FORWARD";
        }
        else
        {
            ReverseButton.GetComponentInChildren <TMP_Text>().text = "REVERSE";
        }
    }
コード例 #3
0
ファイル: GameCanvas.cs プロジェクト: blotta/click-drive
 public void OnThrottleValueChanged(float value)
 {
     GUIInputController.SetThrottle(value);
 }
コード例 #4
0
ファイル: GameCanvas.cs プロジェクト: blotta/click-drive
 public void OnSteerSliderChanged(float value)
 {
     GUIInputController.SetSteer(value);
 }
コード例 #5
0
ファイル: StageStart.cs プロジェクト: blotta/click-drive
 public void Enter()
 {
     GUIInputController.ResetAllValues();
     Time.timeScale = 1;
 }