Example #1
0
 void SetUpVisualManager()
 {
     m_visualManager = FindObjectOfType <CGVisualManager>();
     if (m_visualManager != null)
     {
         m_visualManager.SetClientConnectionInterface(this);
     }
 }
Example #2
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(this);
            return;
        }

        Application.runInBackground = true;
        DontDestroyOnLoad(this);
        if (m_offline)
        {
            PlayOffline();
        }
        if (m_visualManager)
        {
            m_visualManager.SetClientConnectionInterface(this);
        }
    }