Example #1
0
    //void AdCallback(ShowResult result)
    //{
    //    Debug.Log( "Add result: " + result.ToString() );
    //    _isShowingAd = false;

    //    // These can be used determine action depending on the add result
    //    /*if (result == ShowResult.Finished){}
    //    else if (result == ShowResult.Skipped){}
    //    else if (result == ShowResult.Failed){}*/

    //    StartGame();
    //}

    void StartGame()
    {
        AnalyticsIntegration.StartGameEvent();
        AnalyticsIntegration.PickTeamEvent((chosenSide == Side.Left) ? "Rebel" : "Ukraine");

        LugusCamera.game.gameObject.FindComponentInChildren <MinimapCamera>(true).gameObject.SetActive(true);
        DataLoader dl = FindObjectOfType <DataLoader>();

        dl.Load("level_01");
        MenuManager.use.Goto(MenuManager.MenuType.GAMEMENU);
        CameraController.use.InitializeView();
    }
Example #2
0
    void OnEnable()
    {
        AnalyticsIntegration.GameOverEvent(CrossSceneMenuInfo.use.unitsSpawned, CrossSceneMenuInfo.use.lvlDuration);
        CrossSceneMenuInfo.use.resetDict();

        LugusCamera.game.gameObject.FindComponentInChildren <MinimapCamera>(true).gameObject.SetActive(false);
        SoundManager.use.FadeGameOverMusic();

        //if (CrossSceneMenuInfo.use.isPlayerWinner)
        //{
        //    txtWinMessage.gameObject.SetActive(true);
        //    txtLoseMessage.gameObject.SetActive(false);
        //}
        //else
        //{
        //    txtWinMessage.gameObject.SetActive(false);
        //    txtLoseMessage.gameObject.SetActive(true);
        //}
    }
Example #3
0
 void DoShareOnTwitter()
 {
     Debug.Log("Sharing on Twitter");
     AnalyticsIntegration.ClickedSocialTwitterEvent();
     SocialShareBasic.use.twitter.Share(messageTwitter);
 }
Example #4
0
 void DoShareOnFB()
 {
     Debug.Log("Sharing on FB");
     AnalyticsIntegration.ClickedSocialFacebookEvent();
     SocialShareBasic.use.facebook.Share(message);
 }
 void OnEnable()
 {
     CameraController.use.blockingInput = true;
     AnalyticsIntegration.OpenOptionsEvent();
     //SoundManager.use.FadeGameOverMusic();
 }
Example #6
0
 void DoBack()
 {
     AnalyticsIntegration.ReadAboutEvent(Time.realtimeSinceStartup - timer);
     MenuManager.use.Goto(MenuManager.MenuType.MAINMENU);
 }