private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(this); gameController = FindObjectOfType <GameController>(); }
// Start is called before the first frame update void Start() { gameController = FindObjectOfType <GameController>(); env = FindObjectOfType <DialogueEnvironment>(); globals = FindObjectOfType <DialogueGlobals>(); HB_canvas = this.transform.parent.GetChild(2).gameObject; //start = false; globals.LocationHistory.Clear(); Parse(); LoadText("PH"); globals.ChangeDayCounter(); }