예제 #1
0
    //  TODO aherrera : DEBUG SCRIPT; kill this before it's too late
    public void AddRandomParty()
    {
        GameObject      new_Adventurer       = Instantiate(AdventurerPrefab);
        AdventurerModel new_model            = AdventurerGenerator.instance.GenerateRandom(ref new_Adventurer, 1, Enums.UnitRarity.e_rarity_COMMON);
        GameObject      new_party            = new GameObject();
        PartyModel      new_party_model      = new_party.AddComponent <PartyModel> ();
        PartyController new_party_controller = new_party.AddComponent <PartyController> ();

        //AdventurerPacket newpackofcigs = go_adventurerpacket.AddComponent<AdventurerPacket>();
        new_party.name = checkDictionaryForKey(new_party_controller.GetAdventureTitle());
        new_party_controller.InitializeParty();
        new_party_model._Adventurers.Add(new_Adventurer);

        RoomModel room_model = mDungeonModel.GetRoom(new_party_controller.GetCurrentRoomIndex());

        AddNewParty(new_party, true);
        new_party_controller.BeginRoom(room_model.timer_frequency);
    }