Exemple #1
0
 private void Start()
 {
     blockControllers = pickupBoard.GetComponentsInChildren <blockController>();
     renderer1        = bg.GetComponent <SpriteRenderer>();
     a     = renderer1.color.a;
     mouse = MouseInf.GetInstance();
 }
Exemple #2
0
 // 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();
 }
Exemple #3
0
    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;
    }
Exemple #4
0
 // Start is called before the first frame update
 void Start()
 {
     gameManagerInstance = gameManager.instance;
     blockLayerMask      = 1 << LayerMask.NameToLayer("block");
     mouse = MouseInf.GetInstance();
 }