public override void InitGameController(Puzzle01Window P01W) { Debug.Log("Init GameController for Puzzle01"); base.InitGameController(); Debug.Log("Connect Puzzle01 Window"); this.P01W = P01W; Debug.Log("Connect Database of Puzzle01"); DBP01 = GetComponent <DatabasePuzzle01>(); Debug.Log("Call Database of Puzzle01 to connect"); DBP01.InitDatabase(); player = GameObject.FindGameObjectWithTag("Player"); startPosition = player.transform.position; if (DialogueManager.showP01_00) { FindObjectOfType <DialogueManager>().StartDialogue(resourceService.LoadConversation("Puzzle01_00")); DialogueManager.showP01_00 = false; } if (GameRoot.instance.puzzleCompleted[0] == true && GameRoot.instance.puzzleCompleted[1] == true) { SetActive(sunLight, false); SetActive(moonLight, true); ocean.sun = moonLight.GetChild(0).GetComponent <Light>(); RenderSettings.skybox = night; } //Init Components SetActive(endportal, false); }
public virtual void InitGameController(Puzzle01Window P01W) { }