private void RemoveFromPlayerMonsterInfoList(Global.MonsterInfo mi) { if (playerMonsterinfoList.ContainsKey(mi.UniqueID)) { playerMonsterinfoList.Remove(mi.UniqueID); } }
public void AddSummonedPlayerMonster(Global.MonsterInfo mi, GameObject unitSlot) { GameObject monsterGO = monsterSpawner.SpawnMonster(0, mi, TeamName.Friendly, FriendlyTeamGO, unitSlot); // add to PlayerCharacterList AddToPlayerCharacterList(monsterGO); }
// 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); }
private void AddToPlayerMonsterInfoList(Global.MonsterInfo mi) { playerMonsterinfoList.Add(mi.UniqueID, mi); }