void Start()
        {
            if (DialogueBox)
            {
                DialogueBox.RegisterForOptionClickEvents(this);
                DialogueBox.RegisterForNextClickEvents(this);
            }

            StoryScene firstScene = StartingSceneOverride ? StartingSceneOverride : GameManager.Instance.GetNextScene();

            if (firstScene != null)
            {
                StartNewScene(firstScene);

                if (CharacterController)
                {
                    CharacterController.SetCharacters(LeftCharacter, RightCharacter);
                }

                GameManager.Instance.LoopMusic("background_music");
            }
            else
            {
                GameManager.Instance.StartLevelSelect();
            }
        }
Esempio n. 2
0
 private void Start()
 {
     dialogCharacterController = GameObject.FindObjectOfType <DialogCharacterController>();
     if (dialogCharacterController == null)
     {
         Debug.LogError("Couldn't find controller for testing", this);
     }
     dialogCharacterController.SetCharacters(leftCharacter, rightCharacter);
 }