Exemplo n.º 1
0
 private void Awake()
 {
     _puzzleScale = GetComponent <PuzzleScale>();
     _puzzleState = GetComponent <PuzzleState>();
     _puzzleInfo  = GetComponentInChildren <PuzzleInfo>();
     _cursorSwipe = GetComponentInChildren <CursorSwipe>();
 }
Exemplo n.º 2
0
        private void Awake()
        {
            _puzzleView  = GetComponent <PuzzleView>();
            _puzzleState = GetComponent <PuzzleState>();
            _moveDisplay = GameObject.FindGameObjectWithTag("MoveDisplay").GetComponent <MoveDisplay>();
            _gameAudio   = GetComponent <GameBoardAudio>();

            _puzzleView.ViewUpdated += OnViewUpdated;
        }
Exemplo n.º 3
0
        private void Awake()
        {
            _puzzleState = GetComponentInParent <PuzzleState>();
            _puzzleScale = GetComponentInParent <PuzzleScale>();

            _canvas = GetComponentInChildren <Canvas>();
            _text   = _canvas.GetComponentInChildren <Text>();

            _initPos = _canvas.transform.localPosition;
            _canvas.transform.Translate(_hidePos);
        }