Exemplo n.º 1
0
    private IEnumerator LoadCutscene()
    {
        LoadingScreenPanel.transform.Find("LoadingText").gameObject.SetActive(false);
        LoadingScreenPanel.transform.Find("LoadingBar").gameObject.SetActive(false);
        LoadingScreenPanel.SetActive(true);
        transition.SetTrigger("Start");
        yield return(new WaitForSeconds(transitionTime));

        Debug.Log("Cutscene Start");
        NationSelection.SetActive(false);
        CutscenePanel.SetActive(true);
        CutsceneVideoPlayer.SetActive(true);
        CutsceneVideoPlayer.GetComponent <UnityEngine.Video.VideoPlayer>().Play();
        cutsceneTransition.SetTrigger("Start");
        GameController.Instance.state = eState.CUTSCENE;
        if (gameController.playerNation != null)
        {
            calandarController.updateMats();
        }
        InvokeRepeating("checkScene", 0.1f, 0.1f);
    }