private void AddUnits() { units = new List <BattleUnit>(); foreach (KeyValuePair <Vector2Int, int> entry in spawnDict) { Unit unit = new Unit(); if (entry.Value == 0) { unit = Snoo.NewUnit(); } if (entry.Value == 1) { unit = Keaton.NewUnit(); } GameObject go = Instantiate(unit.GetBody(), tileDict[entry.Key].GetPos(), Quaternion.identity, transform); units.Add(new BattleUnit(unit, entry.Key, entry.Value, go)); } }
// Generate Party public static void GenerateParty(int ID) { partyID = ID; partyUnits = new List <Unit>(); partyUnits.Add(Keaton.NewUnit()); }