Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
 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();
     }
 }