Exemplo n.º 1
0
        private void Start()
        {
            LoadResources resources = new LoadResources();

            resources.Initialize();

            //アクターの作成とメンバーの追加
            ActorDataModel  actorData  = ActorDataModel.Instance;
            MemberDataModel memberData = MemberDataModel.Instance;

            memberData.Add(ActorLogic.Create("Mandrake", 3));
            memberData.Add(ActorLogic.Create("Slime", 3));
            memberData.Add(ActorLogic.Create("MechanicSoldier", 3));
            memberData.Add(ActorLogic.Create("Kyubi", 3));

            //エネミーの作成
            EnemyDataModel enemyData = EnemyDataModel.Instance;

            enemyData.Initialize();
            enemyData.Add(EnemyLogic.Create("Goblin", 3));
            enemyData.Add(EnemyLogic.Create("GreenDragon", 3));
            enemyData.Add(EnemyLogic.Create("Goblin", 4));

            //アイテム
            InventoryDataModel.GetInstance().StartUp();

            var manager = gameObject.GetComponent <BattleManager>();

            manager.Initialize();
        }
Exemplo n.º 2
0
        private void Start()
        {
            LoadResources resources = new LoadResources();

            resources.Initialize();

            //アクターの作成とメンバーの追加
            ActorDataModel  actorData  = ActorDataModel.Instance;
            MemberDataModel memberData = MemberDataModel.Instance;

            memberData.Add(ActorLogic.Create("Mandrake", "植物", 1));
            memberData.Add(ActorLogic.Create("Slime", "すらりん", 1));
            memberData.Add(ActorLogic.Create("MechanicSoldier", "ろぼ兵士", 100));
            //memberData.Add(ActorLogic.Create("Kyubi", 1));

            //アイテム
            InventoryDataModel.GetInstance().StartUp();

            //ダンジョン
            DungeonPresenter.GetInstance().Initialize("FirstForest");
        }