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>(); }
void OnDestroy() { instance = null; }
void Awake() { instance = this; }