コード例 #1
0
ファイル: Controller.cs プロジェクト: dpretzel/hookworm
 private void Awake()
 {
     titleController     = FindObjectOfType <TitleController>();
     cinematicController = FindObjectOfType <CinematicController>();
     gameplayController  = FindObjectOfType <GameplayController>();
     deathController     = FindObjectOfType <DeathController>();
     resultsController   = FindObjectOfType <ResultsController>();
 }
コード例 #2
0
 private void Start()
 {
     cinematicController = GameObject.FindGameObjectWithTag("GameManager").GetComponent <CinematicController>();
     if (cinematicController.CinematicPlayed.Contains(cinematicName))
     {
         RemoveEverything();
     }
     else
     {
         foreach (CinemachineVirtualCamera cam in virtualCameras)
         {
             cam.enabled  = false;
             cam.Priority = 20;
         }
     }
 }
コード例 #3
0
ファイル: DialogController.cs プロジェクト: isma527/Hard-Trip
    public void sayNo()
    {
        switch (type)
        {
        case DialogType.DIALOG_TYPE_PRINCESS_START:
            ConfigController.firstDialog = false;
            RightPath();
            break;

        case DialogType.DIALOG_TYPE_END_GAME:
            panel.SetActive(false);
            buttons[0].SetActive(false);
            buttons[1].SetActive(false);
            bossController.spawnBoss();
            LightController.SwapLight(false);
            CinematicController.startCinematic();
            SaveController.SavePoint(ConfigController.phase, 0, 0, 0, 0, 0);
            break;

        case DialogType.DIALOG_TYPE_TRUE_END_GAME:
            panel.SetActive(false);
            buttons[0].SetActive(false);
            buttons[1].SetActive(false);
            LightController.SwapLight(true);
            break;

        case DialogType.DIALOG_TYPE_EXIT_GAME:
            panel.SetActive(false);
            buttons[0].SetActive(false);
            buttons[1].SetActive(false);
            break;

        default:
            break;
        }
    }
コード例 #4
0
 private void Awake()
 {
     Instance = this;
 }
コード例 #5
0
 // Start is called before the first frame update
 void Start()
 {
     cinematicController = GameObject.FindObjectOfType <CinematicController>();
     InitializeMenu();
 }