void CreateOrbs() { Sprite[] sprites = Resources.LoadAll <Sprite>("Sprites/actors"); BattleObject obj = new BattleObject(GameData.CurrentBattle.PlayerA); obj.Properties["isOrb"] = "true"; GameObject gObj = new GameObject("Orb_" + obj.Owner); SpriteRenderer r = gObj.AddComponent <SpriteRenderer>(); r.sprite = sprites[2]; obj.GameObject = gObj; obj.SetDescription(obj.Owner.Name + "'s Orb"); gObj.SetActive(true); obj.SetPosition(new Vector2(0, GameData.CurrentBattle.Board.Height / 2)); obj = new BattleObject(GameData.CurrentBattle.PlayerB); obj.Properties["isOrb"] = "true"; gObj = new GameObject("Orb_" + obj.Owner); r = gObj.AddComponent <SpriteRenderer>(); r.sprite = sprites[2]; obj.GameObject = gObj; obj.SetDescription(obj.Owner.Name + "'s Orb"); gObj.SetActive(true); obj.SetPosition(new Vector2(GameData.CurrentBattle.Board.Width - 1, GameData.CurrentBattle.Board.Height / 2)); }