Beispiel #1
0
        public static DixInfo Load()
        {
            TextAsset _dixtext = Resources.Load("RAQN/dix") as TextAsset;
            DixInfo   _dix     = null;

            if (_dixtext != null)
            {
                _dix = RaqnSerializer.JsonDeserialize <DixInfo>(_dixtext.text);
            }
            if (_dix == null)
            {
                Debug.Log("Cannot Load DixInfo.json!");
                Raqn.Quit();
            }
            return(_dix);
        }
 static public T FromJson <T>(string _json) where T : RaqnStorable, new()
 {
     return(RaqnSerializer.JsonDeserialize <T>(_json));
 }