public override void OnDeactivate() { //THROW_RUN, THROW_RUN_2 if (Owner.BlackBoard.KeepMotion == false) //beny: due to 'UseItem while Move' feature { Owner.BlackBoard.MotionType = E_MotionType.None; Owner.BlackBoard.MoveDir = Vector3.zero; Owner.BlackBoard.Speed = 0; } Action.SetSuccess(); Action = null; if (Owner.BlackBoard.AimAnimationsEnabled) { Animation[AnimNameUp].weight = 0; Animation[AnimNameDown].weight = 0; Animation.Stop(AnimNameUp); Animation.Stop(AnimNameDown); } TimeToFinishWeaponAction = 0; base.OnDeactivate(); // Time.timeScale = 1; }
public override void OnDeactivate() { if (null != Action) { Action.SetSuccess(); Action = null; } Owner.BlackBoard.Speed = 0; base.OnDeactivate(); }
public override void OnDeactivate() { Debug.Log("AgentActionMove Is OnDeactivate"); Owner.BlackBoard.MotionType = E_MotionType.None; if (null != Action) { Action.SetSuccess(); Action = null; } Owner.BlackBoard.Speed = 0; base.OnDeactivate(); }
override public void OnDeactivate() { if (Action != null) { Action.SetSuccess(); Action = null; } Owner.BlackBoard.Speed = 0; base.OnDeactivate(); // Time.timeScale = 1; }