Exemplo n.º 1
0
        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);
        }