public override void InitState () { ANIMATION_DATA.DesignatedAnimation = PlayerState.PlayerCombo2_3_GroundShock.ToString (); CONTROL_MECHANISM.BodyTrailDictionary[BodyTrail.BACK].gameObject.SetActive (false); CONTROL_MECHANISM.BodyTrailDictionary[BodyTrail.BACK].gameObject.SetActive (true); Vector3 footPos = new Vector3 (CONTROL_MECHANISM.BodyPartDictionary[BodyPart.RIGHT_FOOT].position.x, CONTROL_MECHANISM.BodyPartDictionary[BodyPart.RIGHT_FOOT].position.y + 0.1f, 0f); VFX_MANAGER.ShowSimpleEffect (SimpleEffectType.GROUND_SHOCK, footPos); VFX_MANAGER.ShowSimpleEffect (SimpleEffectType.GROUND_SMOKE, footPos); //CONTROL_MECHANISM.BodyTrailDictionary[BodyTrail.BODY].gameObject.SetActive (false); //CONTROL_MECHANISM.BodyTrailDictionary[BodyTrail.BODY].gameObject.SetActive (true); //comboTransition.Reset (); attack.AttackAnimationMotionTriggered = false; CONTROL_MECHANISM.RIGIDBODY.AddForce (Vector3.up * 200f); CameraOffsetType camOffsetType = CameraOffsetType.ZOOM_ON_GROUND_SHOCK_LEFT; if (!CONTROL_MECHANISM.IsFacingForward ()) { camOffsetType = CameraOffsetType.ZOOM_ON_GROUND_SHOCK_RIGHT; } CAMERA_MANAGER.gameCam.SetOffset (camOffsetType, 0.65f); CAMERA_MANAGER.gameCam.playerFollow.SetFollow (PlayerFollowType.FOCUS_ON_HEAD); Time.timeScale = 0.45f; }
public void SetOffset(CameraOffsetType offsetType, float smoothTime) { //cinemachineTransposer.m_FollowOffset = CamOffsets[offsetType]; if (OffsetChangeRoutine != null) { StopCoroutine(OffsetChangeRoutine); } OffsetChangeRoutine = StartCoroutine(_ProcChangeOffset(CamOffsets[offsetType], smoothTime)); if (offsetType == CameraOffsetType.ZOOM_ON_PLAYER_DEATH_LEFT_SIDE) { postFX.m_FocusOffset = 0.3f; } else if (offsetType == CameraOffsetType.ZOOM_ON_PLAYER_DEATH_RIGHT_SIDE) { postFX.m_FocusOffset = 0.3f; } }