예제 #1
0
파일: GameManager.cs 프로젝트: shldn/mdons
    void Start()
    {
        if (mInstance != null)
        {
            Destroy(mInstance.gameObject);
        }
        mInstance = this;

#if (UNITY_STANDALONE && SKIP_SEVERCONFIG) || UNITY_WEBPLAYER
        ParseObject serverconfig = null;
#else
        ParseObject serverconfig = ParseObjectFactory.FindByParseObjectByColumnValue("ServerConfig", "name", serverConfigName);
#endif

        CommunicationManager.Instance.InitializeSmartFoxServer(serverconfig);
#if UNITY_STANDALONE && PATCHER_ENABLE
        guipatcher = this.gameObject.AddComponent <GUIPatcher>();
#endif
        AddComponents();
        initialized = true;
    }
예제 #2
0
    public bool SetServerConfig(string serverConfigName)
    {
        ParseObject serverconfig = string.IsNullOrEmpty(serverConfigName) ? null : ParseObjectFactory.FindByParseObjectByColumnValue("ServerConfig", "name", serverConfigName);

        return(SetServerConfig(serverconfig));
    }