예제 #1
0
    private void HandleButtons()
    {
        Settings.DrawLines     = UI.GetButtonActivated("Toggle Bulletlines");
        Settings.UseNormalGuns = UI.GetButtonActivated("Toggle Controller");

        if (UI.GetButtonActivated("Restart Scenario"))
        {
            Restart();
        }

        if (UI.GetButtonActivated("Mainmenu"))
        {
            ScenarioLogs.Clear();

            LevelLoader.levelName = "MainMenu";
            LevelLoader.Trigger();
            CurrentState = 0;
        }

        if (UI.GetButtonActivatedAndTurnOff("Next Scenario"))
        {
            NextStep();
        }
        if (UI.GetButtonActivatedAndTurnOff("Previous Scenario"))
        {
            PreviousStep();
        }

        if (UI.GetButtonActivatedAndTurnOff("Start_Scenario"))
        {
            Clear();

            States[CurrentState].OnStart();
        }
    }
예제 #2
0
 private void HandleButtons()
 {
     if (UI.GetButtonActivated("MainMenu"))
     {
         ScenarioLogs.Clear();
         levelLoader.levelName = "MainMenu";
         levelLoader.Trigger();
     }
 }
예제 #3
0
파일: MainMenu.cs 프로젝트: Ricebal/VRange
    private void HandleButtons()
    {
        if (UI.GetButtonActivated("Exercise_2"))
        {
            ScenarioLogs.Clear();
            levelLoader.levelName = "Exercise_2_Scenario";
            levelLoader.Trigger();
        }

        Settings.UseNormalGuns = UI.GetButtonActivated("Toggle Controller");

        if (UI.GetButtonActivated("Exit Game"))
        {
            Application.Quit();
        }
    }
예제 #4
0
 /// <summary>
 /// Clears the exercise from bullet lines, bullet holes and scenario logs
 /// </summary>
 public void Clear()
 {
     ScenarioLogs.Clear();
     BulletLines.Destroy();
     DeleteBulletHoles();
 }