void Start() { GamedoniaUsers.Authenticate(OnLogin); printToConsole("Starting session with Gamedonia..."); //Handle push GDPushService pushService = new GDPushService(); pushService.RegisterEvent += new RegisterEventHandler(OnNotification); GamedoniaPushNotifications.AddService(pushService); }
void Start() { //setting framerate QualitySettings.vSyncCount = 0; Application.targetFrameRate = 30; // Load Managers Loader.I.Load(); MatchManager.I.Load(); PlayerManager.I.Load(); AchievementManager.I.Load(); // Push notifications GDPushService service = new GDPushService(); service.RegisterEvent += new RegisterEventHandler(OnGameUpdateNotification); GamedoniaPushNotifications.AddService(service); }
public static void AddService(GDPushService service) { services.Add(service); }
void Start() { if ( Gamedonia.INSTANCE== null) { statusMsg = "Missing Api Key/Secret. Check the README.txt for more info."; return; } else if (GamedoniaPushNotifications.Instance.androidSenderId == "") { Debug.Log ("Missing Android Sender Id, push notifications won't work for Android. Check the README.txt for more info."); } GamedoniaUsers.Authenticate(OnLogin); printToConsole ("Starting session with Gamedonia..."); //Handle push GDPushService pushService = new GDPushService(); pushService.RegisterEvent += new RegisterEventHandler(OnNotification); GamedoniaPushNotifications.AddService(pushService); }