void SetUpVisualManager() { m_visualManager = FindObjectOfType <CGVisualManager>(); if (m_visualManager != null) { m_visualManager.SetClientConnectionInterface(this); } }
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); } }