public Selector(Splosion game, Texture2D selector) { Game = game; _selector = selector; _mouse = new MouseInput(); _mouse.DraggedListeners.Add(PostEvent); _touch = new TouchInput(); _touch.DraggedListeners.Add(PostEvent); SelectorListeners = new List <SelectorEvent>(); }
public GameSettings(Splosion game) { Game = game; if (Utilities.DoesFileExistAsync(ApplicationData.Current.RoamingFolder, "Data")) { _result = Load <ScoreData>(ApplicationData.Current.RoamingFolder, "Data"); } else { _data = new ScoreData(); Save(); } }