public Soul(Player player) { this.player = player; }
public void RegisterPlayer(Player player) { this.player = player; }
private GameObject Instantiate(GameObjectFileData objData) { switch (objData.ObjectType) { case "SoulTrader.Player": player = new Player(camera, objData.GraphicName, objData.Position, objData.Scale); return player; case "SoulTrader.Obstacle": return new Obstacle(objData.GraphicName, objData.Position, objData.Scale); case "SoulTrader.KillZone": return new KillZone(objData.GraphicName, objData.Position, objData.Scale); } return new GameObject(objData.GraphicName, objData.Position, objData.Scale); }