Exemple #1
0
 void Awake()
 {
     waitUndo         = new WaitForSeconds(BlockUndoModule.undoTime);
     LastMoves        = new Stack <GridOrientation>();
     mainCamera       = Camera.main;
     woodBlockManager = WoodenBlockManager.instance;
     if (woodBlockManager == null)
     {
         woodBlockManager = new WoodenBlockManager();
     }
     else
     {
         woodBlockManager.Start();
     }
     answer = GetComponent <PrintAnswer>();
 }
Exemple #2
0
 void OnDestroy()
 {
     instance = null;
 }
Exemple #3
0
 void Awake()
 {
     instance = this;
 }