public override void OnDeactivate() { Owner.BlackBoard.MotionType = E_MotionType.None; Owner.BlackBoard.MoveDir = Vector3.zero; Owner.BlackBoard.Speed = 0; Action.SetSuccess(); Action = null; base.OnDeactivate(); // Time.timeScale = 1; }
override public void OnDeactivate() { AnimEngine[AnimName].speed = 1; Action.SetSuccess(); Action = null; Owner.BlackBoard.Speed = 0; base.OnDeactivate(); // Time.timeScale = 1; }