예제 #1
0
 //Connect to the realtime servers
 public void Connect()
 {
     if (session != null)
     {
         Debug.Log("Starting Session");
         session.Start();
     }
     else
     {
         Debug.Log("Cannot start Session");
     }
 }
예제 #2
0
    //Connect to the realtime servers
    public void Connect()
    {
#if UNITY_WEBGL && !UNITY_EDITOR
        GSStartRTSession(currSessionId);
#else
        if (session != null)
        {
            Debug.Log("Starting Session");
            session.Start();
        }
        else
        {
            Debug.Log("Cannot start Session");
        }
#endif
    }