I want it so the user does not have to keep signing in everytime the app is started. How would I go about this?
This is what I have so far
using System.Collections.Generic;
using System.Net;
using System;
using com.shephertz.app42.paas.sdk.csharp;
using com.shephertz.app42.paas.sdk.csharp.session;
using AssemblyCSharp;
public class LoadMenuOrLogin : MonoBehaviour {
ServiceAPI sp = null;
SessionService sessionService = null; // Initializing User Service.
SessionResponse callBack = new SessionResponse();
public string SavedSession;
// Use this for initialization
void Start () {
SavedSession = PlayerPrefs.GetString ("SessionID");
}
// Update is called once per frame
void Update () {
if (SavedSession == null)
{
Application.LoadLevel("LogIn");
}
else
{
Application.LoadLevel("menu");
}
}
}