// Use this for initialization private void Awake() { mkernelModule = NFPluginManager.Instance().FindModule <NFIKernelModule>(); mClassModule = NFPluginManager.Instance().FindModule <NFIClassModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mElementModule = NFPluginManager.Instance().FindModule <NFIElementModule>(); int iNum = 0; Transform tParent = this.transform.parent; while (tParent) { rowView = tParent.GetComponent <NFRecordRowView> (); if (rowView != null) { rowView.AddColView(col, this); break; } iNum++; if (iNum > 3) { break; } tParent = tParent.parent; } }
// Use this for initialization private void Awake() { mkernelModule = NFPluginManager.Instance().FindModule <NFIKernelModule>(); mClassModule = NFPluginManager.Instance().FindModule <NFIClassModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mElementModule = NFPluginManager.Instance().FindModule <NFIElementModule>(); }
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 override void Init() { NFIPluginManager xPluginManager = NFPluginManager.Instance(); mLoginModule = xPluginManager.FindModule <NFLoginModule>(); mUIModule = xPluginManager.FindModule <NFUIModule>(); mEventModule = xPluginManager.FindModule <NFIEventModule>(); mNetModule = xPluginManager.FindModule <NFNetModule>(); }
public NFIdleState(GameObject gameObject, NFAnimaStateType eState, NFAnimaStateMachine xStateMachine, float fHeartBeatTime, float fExitTime, bool input = false) : base(gameObject, eState, xStateMachine, fHeartBeatTime, fExitTime, input) { NFIPluginManager pluginManager = NFPluginManager.Instance(); mKernelModule = pluginManager.FindModule <NFIKernelModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mSceneModule = NFPluginManager.Instance().FindModule <NFSceneModule>(); }
private void Awake() { NFIPluginManager xPluginManager = NFPluginManager.Instance(); mLoginModule = xPluginManager.FindModule <NFLoginModule>(); mUIModule = xPluginManager.FindModule <NFUIModule>(); mEventModule = xPluginManager.FindModule <NFIEventModule>(); mLanguageModule = xPluginManager.FindModule <NFLanguageModule>(); }
private void Awake() { NFIPluginManager xPluginManager = NFPluginManager.Instance(); mLoginModule = xPluginManager.FindModule <NFLoginModule>(); mUIModule = xPluginManager.FindModule <NFUIModule>(); mNetModule = xPluginManager.FindModule <NFNetModule>(); mHelpModule = xPluginManager.FindModule <NFHelpModule>(); mSceneModule = xPluginManager.FindModule <NFSceneModule>(); }
private void Start() { mxHeroMotor = GetComponent <NFHeroMotor>(); mxSyncBuffer = GetComponent <NFHeroSyncBuffer>(); mxBodyIdent = GetComponent <NFBodyIdent>(); mAnimaStateMachine = GetComponent <NFAnimaStateMachine>(); mxNetModule = NFPluginManager.Instance().FindModule <NFNetModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mHelpModule = NFPluginManager.Instance().FindModule <NFHelpModule>(); }
// Use this for initialization public override void Init() { mEventModule = NFPluginManager.Instance().FindModule <NFIEventModule>(); mNetModule = NFPluginManager.Instance().FindModule <NFNetModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mUIModule = NFPluginManager.Instance().FindModule <NFUIModule>(); mHelpModule = NFPluginManager.Instance().FindModule <NFHelpModule>(); mAcceptButton.onClick.AddListener(OnAcceptClick); mRejectButton.onClick.AddListener(OnRejectClick); }
private void Awake() { NFIPluginManager xPluginManager = NFPluginManager.Instance(); mNetModule = xPluginManager.FindModule <NFNetModule>(); mLoginModule = xPluginManager.FindModule <NFLoginModule>(); mUIModule = xPluginManager.FindModule <NFUIModule>(); mEventModule = xPluginManager.FindModule <NFIEventModule>(); mKernelModule = NFPluginManager.Instance().FindModule <NFIKernelModule>(); mElementModule = NFPluginManager.Instance().FindModule <NFIElementModule>(); }
// Use this for initialization public override void Init() { mEventModule = NFPluginManager.Instance().FindModule <NFIEventModule>(); mNetModule = NFPluginManager.Instance().FindModule <NFNetModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mUIModule = NFPluginManager.Instance().FindModule <NFUIModule>(); mHelpModule = NFPluginManager.Instance().FindModule <NFHelpModule>(); mLogin.onClick.AddListener(OnLoginClick); mEventModule.RegisterCallback((int)NFLoginModule.Event.LoginSuccess, OnLoginSuccess); }
private void Awake() { mEventModule = NFPluginManager.Instance().FindModule <NFIEventModule>(); mKernelModule = NFPluginManager.Instance().FindModule <NFIKernelModule>(); mElementModule = NFPluginManager.Instance().FindModule <NFIElementModule>(); mClassModule = NFPluginManager.Instance().FindModule <NFIClassModule>(); mSceneModule = NFPluginManager.Instance().FindModule <NFSceneModule>(); mLanguageModule = NFPluginManager.Instance().FindModule <NFLanguageModule>(); mNetModule = NFPluginManager.Instance().FindModule <NFNetModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mUIModule = NFPluginManager.Instance().FindModule <NFUIModule>(); mHelpModule = NFPluginManager.Instance().FindModule <NFHelpModule>(); }
void Start() { mStateMachineMng = GetComponent <NFAnimaStateMachine>(); mBodyIdent = GetComponent <NFBodyIdent>(); mHeroMotor = GetComponent <NFHeroMotor>(); mUIModule = NFPluginManager.Instance().FindModule <NFUIModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mKernelModule = NFPluginManager.Instance().FindModule <NFIKernelModule>(); mKernelModule.RegisterPropertyCallback(mBodyIdent.GetObjectID(), NFrame.Player.MOVE_SPEED, PropertyMoveSpeedHandler); mKernelModule.RegisterPropertyCallback(mBodyIdent.GetObjectID(), NFrame.Player.ATK_SPEED, PropertyAttackSpeedHandler); mHeroMotor.angularSpeed = 0f; }
//=================================================================================================================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>(); }
void Start() { mNetModule = NFPluginManager.Instance().FindModule <NFNetModule>(); mLoginModule = NFPluginManager.Instance().FindModule <NFLoginModule>(); mController = GetComponent <CharacterController>(); mAnimation = GetComponent <Animator>(); mController.detectCollisions = false; // get the transform of the main camera if (Camera.main != null) { Camera.main.GetComponent <CameraFollow>().target = this.transform; } }
public void Awake() { NFIPluginManager pluginManager = NFPluginManager.Instance(); xBodyIdent = GetComponent <NFBodyIdent>(); mKernelModule = pluginManager.FindModule <NFIKernelModule>(); mElementModule = pluginManager.FindModule <NFIElementModule>(); mLoginModule = pluginManager.FindModule <NFLoginModule>(); AddState(NFAnimaStateType.Idle, new NFIdleState(this.gameObject, NFAnimaStateType.Idle, this, 1f, 0f, true)); AddState(NFAnimaStateType.Run, new NFRunState(this.gameObject, NFAnimaStateType.Run, this, 1f, 0f, true)); AddState(NFAnimaStateType.Walk, new NFWalkState(this.gameObject, NFAnimaStateType.Walk, this, 1f, 0f, true)); AddState(NFAnimaStateType.Dizzy, new NFDizzyState(this.gameObject, NFAnimaStateType.Dizzy, this, 1f, 0f)); AddState(NFAnimaStateType.Freeze, new NFFreezeState(this.gameObject, NFAnimaStateType.Freeze, this, 1f, 0f)); AddState(NFAnimaStateType.Block, new NFBlockState(this.gameObject, NFAnimaStateType.Block, this, 1f, 0f)); AddState(NFAnimaStateType.Fall, new NFFallState(this.gameObject, NFAnimaStateType.Fall, this, 1f, 0f)); AddState(NFAnimaStateType.Dead, new NFDeadState(this.gameObject, NFAnimaStateType.Dead, this, 1f, 0f)); AddState(NFAnimaStateType.JumpStart, new NFJumpStartState(this.gameObject, NFAnimaStateType.JumpStart, this, 1f, 0f)); AddState(NFAnimaStateType.Jumping, new NFJumpingState(this.gameObject, NFAnimaStateType.Jumping, this, 1f, 0f)); AddState(NFAnimaStateType.JumpLand, new NFJumpLandState(this.gameObject, NFAnimaStateType.JumpLand, this, 0.1f, 0.4f)); AddState(NFAnimaStateType.BeHit1, new NFBeHitState(this.gameObject, NFAnimaStateType.BeHit1, this, 1f, 0f)); AddState(NFAnimaStateType.BeHit2, new NFBeHitState(this.gameObject, NFAnimaStateType.BeHit2, this, 1f, 0f)); AddState(NFAnimaStateType.HitFly, new NFHitFlyState(this.gameObject, NFAnimaStateType.HitFly, this, 1f, 0f)); AddState(NFAnimaStateType.Stun, new NFHitFlyState(this.gameObject, NFAnimaStateType.Stun, this, 1f, 0f)); AddState(NFAnimaStateType.DashForward, new NFDashForwardState(this.gameObject, NFAnimaStateType.DashForward, this, 1f, 0f)); AddState(NFAnimaStateType.DashJump, new NFDashForwardState(this.gameObject, NFAnimaStateType.DashJump, this, 1f, 0f)); AddState(NFAnimaStateType.Buff1, new NFBuff1(this.gameObject, NFAnimaStateType.Buff1, this, 1f, 0f)); AddState(NFAnimaStateType.NormalSkill1, new NFNormalSkill1(this.gameObject, NFAnimaStateType.NormalSkill1, this, 1f, 0f)); AddState(NFAnimaStateType.NormalSkill2, new NFNormalSkill2(this.gameObject, NFAnimaStateType.NormalSkill2, this, 1f, 0f)); AddState(NFAnimaStateType.NormalSkill3, new NFNormalSkill3(this.gameObject, NFAnimaStateType.NormalSkill3, this, 1f, 0f)); AddState(NFAnimaStateType.NormalSkill4, new NFNormalSkill4(this.gameObject, NFAnimaStateType.NormalSkill4, this, 1f, 0f)); AddState(NFAnimaStateType.NormalSkill5, new NFNormalSkill5(this.gameObject, NFAnimaStateType.NormalSkill5, this, 1f, 0f)); AddState(NFAnimaStateType.SpecialSkill1, new NFSpecialSkill1(this.gameObject, NFAnimaStateType.SpecialSkill1, this, 1f, 0f)); AddState(NFAnimaStateType.SpecialSkill2, new NFSpecialSkill2(this.gameObject, NFAnimaStateType.SpecialSkill2, this, 1f, 0f)); AddState(NFAnimaStateType.SkillThump, new NFSkillThump(this.gameObject, NFAnimaStateType.SkillThump, this, 1f, 0f)); }
public override void Init() { NFIPluginManager xPluginManager = NFPluginManager.Instance(); mKernelModule = xPluginManager.FindModule <NFIKernelModule>(); }
public NFDeadState(GameObject gameObject, NFAnimaStateType eState, NFAnimaStateMachine xStateMachine, float fHeartBeatTime, float fExitTime, bool input = false) : base(gameObject, eState, xStateMachine, fHeartBeatTime, fExitTime, input) { mUIModule = NFPluginManager.Instance().FindModule <NFUIModule>(); }
void Awake() { mLanguageModule = NFPluginManager.Instance().FindModule <NFLanguageModule>(); mLanguageModule.AddLanguageUI(this.gameObject); }