示例#1
0
    void Start()
    {
        GamedoniaUsers.Authenticate(OnLogin);
        printToConsole("Starting session with Gamedonia...");

        //Handle push
        GDPushService pushService = new GDPushService();

        pushService.RegisterEvent += new RegisterEventHandler(OnNotification);
        GamedoniaPushNotifications.AddService(pushService);
    }
示例#2
0
    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);
    }
示例#3
0
 public static void AddService(GDPushService service)
 {
     services.Add(service);
 }
示例#4
0
    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);
    }