public static void clearAllPower() { for (uint c = 0; c < StageScript.cols.Length; ++c) { for (uint r = 0; r < StageScript.rows.Length; ++r) { powerSlots[c, r].Clear(); StageScript.colorTile(HeroType.NONE, c, r); } } }
public static void removePower(HeroType type, uint posX, uint posY) { powerSlots [posX, posY].Remove(type); int count = powerSlots [posX, posY].Count; if (count == 0) { StageScript.colorTile(HeroType.NONE, posX, posY); } else { StageScript.colorTile(powerSlots [posX, posY][count - 1], posX, posY); } }
public static void assignPower(HeroType type, uint posX, uint posY) { powerSlots [posX, posY].Add(type); StageScript.colorTile(type, posX, posY); }