private void Start() { blockControllers = pickupBoard.GetComponentsInChildren <blockController>(); renderer1 = bg.GetComponent <SpriteRenderer>(); a = renderer1.color.a; mouse = MouseInf.GetInstance(); }
// Start is called before the first frame update void Start() { cam = Camera.main; size = grid.cellSize.x; jigsawBoardMask = 1 << LayerMask.NameToLayer("jigsawBoard"); pickupBoardMask = 1 << LayerMask.NameToLayer("pickupBoard"); blockBoardMask = 1 << LayerMask.NameToLayer("block"); UILayerMask = 1 << LayerMask.NameToLayer("UI"); mouse = MouseInf.GetInstance(); }
public void ClickToUndo() { if (operations.Count > 0) { Operation operation = operations.Pop(); while (operation.operation.Count > 0) { MoveInf move = operation.operation.Pop(); UndoMove(move); } } MouseInf.GetInstance().isRelay = true; }
// Start is called before the first frame update void Start() { gameManagerInstance = gameManager.instance; blockLayerMask = 1 << LayerMask.NameToLayer("block"); mouse = MouseInf.GetInstance(); }