//determine the file path and the classes. private void Awake() { if (gamecontrl == null) { gamecontrl = this; } bf = new BinaryFormatter(); datafilepath = "../data/game.dat"; potCountController = FindObjectOfType <HPPotCountController>(); }
private void Awake() { flowChart = FindObjectOfType <Flowchart>(); knight = FindObjectOfType <Knight>().gameObject; potCountController = FindObjectOfType <HPPotCountController>(); }