コード例 #1
0
        private void CreateGamePieceViews()
        {
            List <IGamePiecePM> gamePiecePMs = PM.GamePiecePMs;

            foreach (IGamePiecePM piecePM in gamePiecePMs)
            {
                GameObject pieceObject = container.InstantiatePrefab(GamePieceViewPrefab, transform);
                //GameObject pieceObject = gameObject.InstantiateUI( GamePieceViewPrefab, gameObject );
                GamePieceView pieceView = pieceObject.GetComponent <GamePieceView>();
                pieceView.Init(piecePM);
            }
        }
コード例 #2
0
        public void OnAnimationComplete()
        {
            GamePieceView view = GetComponentInParent <GamePieceView>();

            view.OnAnimationComplete();
        }