//---------------------------------------------------------------------------------- // Constructor //---------------------------------------------------------------------------------- public DropBomb(float px, float py) { this.x = px; this.y = py; this.pBombRoot = GameObjectManager.Find(GameObject.Name.BombRoot); Debug.Assert(this.pBombRoot != null); this.pSB_Invaders = SpriteNodeBatchManager.Find(SpriteNodeBatch.Name.TheSwarm); Debug.Assert(this.pSB_Invaders != null); this.pSB_Boxes = SpriteNodeBatchManager.Find(SpriteNodeBatch.Name.Boxes); Debug.Assert(this.pSB_Boxes != null); GameObject pGrid = GameObjectManager.Find(GameObject.Name.AlienGrid); hash = pGrid.GetHashCode(); }