// Start is called before the first frame update void Start() { mSceneModule = NFRoot.Instance().GetPluginManager().FindModule <NFSceneModule>(); GameObject xModelObject = mSceneModule.GetModelObject(); ModelInput = xModelObject.GetComponent <NFModelInput>(); }
public NFFallState(GameObject gameObject, NFAnimaStateType eState, NFAnimaStateMachine xStateMachine, float fHeartBeatTime, float fExitTime, bool input = false) : base(gameObject, eState, xStateMachine, fHeartBeatTime, fExitTime, input) { xHeroMotor = gameObject.GetComponent <NFHeroMotor>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mSceneModule = NFPluginManager.Instance().FindModule <NFSceneModule>(); }
public NFIdleState(GameObject gameObject, NFAnimaStateType eState, NFAnimaStateMachine xStateMachine, float fHeartBeatTime, float fExitTime, bool input = false) : base(gameObject, eState, xStateMachine, fHeartBeatTime, fExitTime, input) { NFIPluginManager pluginManager = NFRoot.Instance().GetPluginManager(); mKernelModule = pluginManager.FindModule <NFIKernelModule>(); mLoginModule = NFRoot.Instance().GetPluginManager().FindModule <NFLoginModule>(); mSceneModule = NFRoot.Instance().GetPluginManager().FindModule <NFSceneModule>(); }
private void Awake() { NFIPluginManager xPluginManager = NFRoot.Instance().GetPluginManager(); mLoginModule = xPluginManager.FindModule <NFLoginModule>(); mUIModule = xPluginManager.FindModule <NFUIModule>(); mNetModule = xPluginManager.FindModule <NFNetModule>(); mHelpModule = xPluginManager.FindModule <NFHelpModule>(); mSceneModule = xPluginManager.FindModule <NFSceneModule>(); }
private void Awake() { NFIPluginManager xPluginManager = NFRoot.Instance().GetPluginManager(); mLoginModule = xPluginManager.FindModule <NFLoginModule>(); mUIModule = xPluginManager.FindModule <NFUIModule>(); mSceneModule = xPluginManager.FindModule <NFSceneModule>(); mEventModule = xPluginManager.FindModule <NFIEventModule>(); mElementModule = xPluginManager.FindModule <NFIElementModule>(); }
// Use this for initialization public override void Awake() { mClassModule = mPluginManager.FindModule <NFIClassModule>(); mKernelModule = mPluginManager.FindModule <NFIKernelModule>(); mSceneModule = mPluginManager.FindModule <NFSceneModule>(); mNetModule = mPluginManager.FindModule <NFNetModule>(); mHelpModule = mPluginManager.FindModule <NFHelpModule>(); mNetEventModule = mPluginManager.FindModule <NFNetEventModule>(); mUIModule = mPluginManager.FindModule <NFUIModule>(); }
void Start() { mUIModule = NFRoot.Instance().GetPluginManager().FindModule <NFUIModule>(); mLoginModule = NFRoot.Instance().GetPluginManager().FindModule <NFLoginModule>(); mNetModule = NFRoot.Instance().GetPluginManager().FindModule <NFNetModule>(); mSceneModule = NFRoot.Instance().GetPluginManager().FindModule <NFSceneModule>(); mKernelModule = NFRoot.Instance().GetPluginManager().FindModule <NFIKernelModule>(); mMainCamera = GameObject.Find("Main Camera"); GetModelInfoList(); // mSceneModule.SetCurrentModel(-1); }
private void Awake() { mEventModule = NFRoot.Instance().GetPluginManager().FindModule <NFIEventModule>(); mKernelModule = NFRoot.Instance().GetPluginManager().FindModule <NFIKernelModule>(); mElementModule = NFRoot.Instance().GetPluginManager().FindModule <NFIElementModule>(); mClassModule = NFRoot.Instance().GetPluginManager().FindModule <NFIClassModule>(); mSceneModule = NFRoot.Instance().GetPluginManager().FindModule <NFSceneModule>(); mLanguageModule = NFRoot.Instance().GetPluginManager().FindModule <NFLanguageModule>(); mNetModule = NFRoot.Instance().GetPluginManager().FindModule <NFNetModule>(); mLoginModule = NFRoot.Instance().GetPluginManager().FindModule <NFLoginModule>(); mUIModule = NFRoot.Instance().GetPluginManager().FindModule <NFUIModule>(); mHelpModule = NFRoot.Instance().GetPluginManager().FindModule <NFHelpModule>(); }
//=================================================================================================================o public override void Awake() { base.Awake(); _walkSpeed = 1.5f; angularSpeed = 0f; mKernelModule = NFPluginManager.Instance().FindModule <NFIKernelModule>(); mSceneModule = NFPluginManager.Instance().FindModule <NFSceneModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mNetModule = NFPluginManager.Instance().FindModule <NFNetModule>(); mUIModule = NFPluginManager.Instance().FindModule <NFUIModule>(); mAnima = GetComponent <NFAnimatStateController>(); }