public override Int64 QueryPropertyInt(string strConfigName, string strPropertyName)
        {
            NFIElement xElement = GetElement(strConfigName);

            if (null != xElement)
            {
                return(xElement.QueryInt(strPropertyName));
            }

            return(0);
        }
Example #2
0
        public override Int64 QueryPropertyInt(string strConfigName, string strPropertyName)
        {
            NFIElement xElement = GetElement(strConfigName);

            if (null != xElement)
            {
                return(xElement.QueryInt(strPropertyName));
            }

            UnityEngine.Debug.LogError("ERROR: " + strConfigName + " HAS NO " + strPropertyName);

            return(0);
        }
Example #3
0
        public void BeforeLoadSceneEnd(int nSceneID)
        {
            foreach (var v in mhtObject)
            {
                NFHeroMotor heroMotor = v.Value.GetComponent <NFHeroMotor>();
                heroMotor.ResetHeight();
            }

            NFSDK.NFIElement xElement = mElementModule.GetElement(nSceneID.ToString());
            if (null != xElement)
            {
                string strName   = xElement.QueryString(NFrame.Scene.SceneName);
                int    sceneType = (int)xElement.QueryInt(NFrame.Scene.Type);
            }
        }