コード例 #1
0
    private void OnApplicationPause(bool pauseStatus)
    {
        if (!pauseStatus)
        {
            Time.timeScale = 1;

            LocalNotification.DisableRetentionNotification();

            return;
        }

        // =============================== SAVE TIME ONLINE ================================ //

        PlayerData._LastTimeOnline = Helper.GetUtcTimeString();
        PlayerData.SaveLastTimeOnline();

        LocalNotification.EnableRetentionNotification();

        Time.timeScale = 0;
    }