示例#1
0
 private void Awake()
 {
     _lattice     = GetComponentInChildren <LatticeView>();
     _puzzleScale = GetComponent <PuzzleScale>();
     _itemPool    = GetComponent <ItemPool>();
     _gameAudio   = GetComponent <GameBoardAudio>();
 }
示例#2
0
 private void Awake()
 {
     _puzzleScale = GetComponent <PuzzleScale>();
     _puzzleState = GetComponent <PuzzleState>();
     _puzzleInfo  = GetComponentInChildren <PuzzleInfo>();
     _cursorSwipe = GetComponentInChildren <CursorSwipe>();
 }
示例#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);
        }