Ejemplo n.º 1
0
 private void RemoveFromPlayerMonsterInfoList(Global.MonsterInfo mi)
 {
     if (playerMonsterinfoList.ContainsKey(mi.UniqueID))
     {
         playerMonsterinfoList.Remove(mi.UniqueID);
     }
 }
Ejemplo n.º 2
0
        public void AddSummonedPlayerMonster(Global.MonsterInfo mi, GameObject unitSlot)
        {
            GameObject monsterGO = monsterSpawner.SpawnMonster(0,
                                                               mi,
                                                               TeamName.Friendly,
                                                               FriendlyTeamGO,
                                                               unitSlot);

            // add to PlayerCharacterList
            AddToPlayerCharacterList(monsterGO);
        }
Ejemplo n.º 3
0
        // TODO... This may no longer be required - Index is no longer used for Player summon abilities
        public void AddSummonedPlayerMonster(int index, GameObject unitSlot)
        {
            // TODO... temp, remove this - may be better setting mi in 'spawnMonster' to a default argument
            Global.MonsterInfo mi = new Global.MonsterInfo();

            GameObject monsterGO = monsterSpawner.SpawnMonster(index,
                                                               mi,
                                                               TeamName.Friendly,
                                                               FriendlyTeamGO,
                                                               unitSlot);

            // add to PlayerCharacterList
            AddToPlayerCharacterList(monsterGO);
        }
Ejemplo n.º 4
0
 private void AddToPlayerMonsterInfoList(Global.MonsterInfo mi)
 {
     playerMonsterinfoList.Add(mi.UniqueID, mi);
 }