// Use this for initialization
 void Start()
 {
     //_keyFuncNormal = new KeyFuncNormal();
     //_keyFuncNormal._listKeyCode = new List<KeyCode>();
     //_keyFuncNormal._listSkelAnimName = new List<string>();
     _keyFuncNormal    = DataManager._this.GetKeyFuncNormalObject();
     _listKeyFuncMulti = DataManager._this.GetKeyFuncMultiObject();
 }
예제 #2
0
    public KeyFuncNormal GetKeyFuncNormalObject()
    {
        string       filePath = string.Format("{0}/{1}", Application.persistentDataPath, "KeyFuncNormal.sav");
        FileStream   stream   = File.Open(filePath, FileMode.Open);
        StreamReader sr       = new StreamReader(stream);

        if (null == sr)
        {
            Debug.Log("KeyFuncNormal is null!");
            return(null);
        }

        string        strText = sr.ReadToEnd();
        KeyFuncNormal getData = LitJson.JsonMapper.ToObject <KeyFuncNormal>(strText);

        return(getData);
    }