public Player() : base() { spellIndicator = new SpellIndicator(40); PlayerCastIndicator = new CastRangeIndicator(); spellIndicator.link(PlayerCastIndicator); SpellGenerator.GetInstance().PrintAllSpells(); GameTools.Player = this; Money = 20; }
public void CleanUp() { for (int i = 0; i < pool.Length; i++) { if (pool[i] != null) { Object.Destroy(pool[i]); } } RangeIndicator = null; }
public GameInstance(Player player, PlayerBase Base, int adaptive_difficulty) { this.player = player; this.Base = Base; this.DifficultyChange = adaptive_difficulty; list_live_units = new List <Unit>(); list_dead_units = new List <Unit>(); all_units = new List <Unit>(); UnitCastIndicator = new CastRangeIndicator(); initSM(); initGame(); GameTools.GI = this; GameTools.All_Units = list_live_units; GameTools.Dead_Units = list_dead_units; CleanTools.GetInstance().SubscribeCleanable(this); }
public void link(CastRangeIndicator cr) { RangeIndicator = cr; }