コード例 #1
0
ファイル: AbstractConfig.cs プロジェクト: lxynb/MiniGame
        public void ApplyJson(string json)
        {
            if (string.IsNullOrEmpty(json))
            {
                return;
            }

            JsonUtility.FromJsonOverwrite(json, this);
            Debug.LogFormat("[Config] Json applied to config: {0}.", configID);

            ValidateConfig();
            OnChanged.Dispatch(this);
        }