예제 #1
0
 public CardController(InGameCardCollectionManager cardCollectionManager, CardManagerUI cardManagerUI, GameMachine game)
 {
     this.inGameCardCollectionManager = cardCollectionManager;
     this.cardManagerUI       = cardManagerUI;
     cardTargetFiltterManager = new CardTargetFiltterManager(game.turnController, game.board2DManager);
     cardEffectManager        = new CardEffectManager();
     this.game = game;
     CardPropertiesDatabase.GetCardSubClassByReflection();
 }
        public Animotion NormalCombineAnimotion(Vector3 tileObjectRealWorldLocation, GameObject goKimbok, List <GameObject> kimbokos, GameMachine game)
        {
            List <Animotion> motionsSpawnCombine = new List <Animotion>();

            // A - MOVEMOS A LOS KIMBOKOS QUE OCUPEN LA TILE A LOS COSTADOS
            motionsSpawnCombine.Add(MoveToSquarePositionAnimotion(kimbokos, tileObjectRealWorldLocation));

            // B - Motion normal Move Motion
            motionsSpawnCombine.Add(game.moveManagerUI.MoveAnimotion(goKimbok, tileObjectRealWorldLocation));

            // C - REPOSICIONAMOS A TODOS LOS KIMBOKO
            // AGREGO EL KIMBOKO SPAWNEADO A LA LISTA
            kimbokos.Add(goKimbok);
            motionsSpawnCombine.Add(RearangePositionAfterCombineAnimotion(kimbokos, tileObjectRealWorldLocation, 2));

            CombineAnimotion combinMoveMotion = new CombineAnimotion(this, 1, motionsSpawnCombine);

            return(combinMoveMotion);
        }
 public CombineManager(GameMachine game, CombineManagerUI combineManagerUI)
 {
     this.game             = game;
     this.combineManagerUI = combineManagerUI;
 }
예제 #4
0
 public MovementManager(GameMachine game, MoveManagerUI moveManagerUI)
 {
     this.game          = game;
     this.moveManagerUI = moveManagerUI;
 }
예제 #5
0
 public SpawnManager(SpawnManagerUI spawnManagerUI, GameMachine game)
 {
     this.spawnManagerUI = spawnManagerUI;
     this.game           = game;
 }