示例#1
0
 //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>();
 }
示例#2
0
 private void Awake()
 {
     flowChart          = FindObjectOfType <Flowchart>();
     knight             = FindObjectOfType <Knight>().gameObject;
     potCountController = FindObjectOfType <HPPotCountController>();
 }