示例#1
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);
        }
    }
示例#2
0
 public void SetClientConnectionInterface(ClientConnectionInterface connection)
 {
     m_connectionInterface = connection;
 }