SessionStoped() public static method

public static SessionStoped ( ) : void
return void
Esempio n. 1
0
    public override void OnApplicationPause(bool bPause)
    {
        base.OnApplicationPause(bPause);
        if (bPause)
        {
            PlayerPrefs.SetFloat("PlayTime", GetPlayTime());        //暂停时保存游戏时间
#if UNITY_ANDROID || UNITY_IPHONE
            if (CapsConfig.EnableTalkingData)
            {
                TalkingDataPlugin.SessionStoped();
            }
#endif
        }
        else
        {
            m_playTime     = PlayerPrefs.GetFloat("PlayTime");      //恢复时读取游戏时间
            m_startAppTime = Time.realtimeSinceStartup;
#if UNITY_ANDROID || UNITY_IPHONE
            if (CapsConfig.EnableTalkingData)
            {
                TalkingDataPlugin.SessionStarted("8F604653A8CC694E6954B51FE6D26127", "Test");
            }
#endif
        }
    }
Esempio n. 2
0
    public override void OnApplicationQuit()
    {
        base.OnApplicationQuit();
        Application.Quit();

        PlayerPrefs.SetFloat("PlayTime", GetPlayTime());

#if UNITY_ANDROID || UNITY_IPHONE
        if (CapsConfig.EnableTalkingData)
        {
            TalkingDataPlugin.SessionStoped();
        }
#endif
    }
Esempio n. 3
0
 public void OnApplicationQuit()
 {
     TalkingDataPlugin.SessionStoped();
 }
 void OnDestroy()
 {
     TalkingDataPlugin.SessionStoped();
     Debug.Log("onDestroy");
 }