private void Update() { //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) if (!(m_animator == null) && !(m_targetPlayer == null)) { AnimatorStateInfo currentAnimatorStateInfo = m_animator.GetCurrentAnimatorStateInfo(0); int shortNameHash = currentAnimatorStateInfo.get_shortNameHash(); Vector3 position = m_footNode.get_position(); float y = position.y; float height = StageManager.GetHeight(m_targetPlayer._position); int num = m_animHashLoop; if (Mathf.Abs(y - height) > 0.8f) { num = m_animHashEnd; } if (num != shortNameHash) { m_animator.Play(num, 0, 0f); } } }
private void UpdateEnemy() { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) AnimatorStateInfo currentAnimatorStateInfo = enemyInfo.animator.GetCurrentAnimatorStateInfo(0); if (currentAnimatorStateInfo.get_shortNameHash() != CUT_STATE_HASH[cutNo]) { enemyInfo.animator.Play(CUT_STATE_HASH[cutNo]); } }
public bool IsCurrentState(int stateNameHash) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) if (animator == null) { return(false); } AnimatorStateInfo currentAnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(0); return(currentAnimatorStateInfo.get_shortNameHash() == stateNameHash); }
private void UpdatePlayer() { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) for (int i = 0; i < playerInfo.Length; i++) { if (playerInfo[i] != null) { AnimatorStateInfo currentAnimatorStateInfo = playerInfo[i].animator.GetCurrentAnimatorStateInfo(0); if (currentAnimatorStateInfo.get_shortNameHash() != CUT_STATE_HASH[cutNo]) { playerInfo[i].animator.Play(CUT_STATE_HASH[cutNo]); } } } }
public void Pause(bool pause) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) if (isPause != pause) { if (pause) { if (this.get_gameObject().get_activeInHierarchy()) { if (!object.ReferenceEquals(animator, null)) { AnimatorStateInfo currentAnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(0); int shortNameHash = currentAnimatorStateInfo.get_shortNameHash(); if (shortNameHash == 0) { return; } pauseStateHash = shortNameHash; animator.Stop(); } this.get_gameObject().SetActive(false); isPause = true; } } else { this.get_gameObject().SetActive(true); if (!object.ReferenceEquals(animator, null)) { animator.Play(pauseStateHash); pauseStateHash = 0; } isPause = false; } } }
private void UpdateActor() { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) for (int i = 0; i < this.actorInfo.Length; i++) { ActorInfo actorInfo = this.actorInfo[i]; if (actorInfo != null) { if (actorInfo.animator.HasState(0, CUT_STATE_HASH[cutNo])) { actorInfo.obj.SetActive(true); AnimatorStateInfo currentAnimatorStateInfo = actorInfo.animator.GetCurrentAnimatorStateInfo(0); if (currentAnimatorStateInfo.get_shortNameHash() != CUT_STATE_HASH[cutNo]) { actorInfo.animator.Play(CUT_STATE_HASH[cutNo]); CutSceneData.ActorData keyData = actorInfo.keyData; Transform parentNode = GetParentNode(keyData.attachmentType, keyData.nodeName); if (parentNode != null) { actorInfo.obj.get_transform().set_parent(parentNode); } actorInfo.obj.get_transform().set_localPosition(keyData.position); actorInfo.obj.get_transform().set_localRotation(Quaternion.Euler(keyData.rotation)); } } else { actorInfo.obj.SetActive(false); } } } }
public void Update() { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Unknown result type (might be due to invalid IL or missing references) if (isCtrlActive) { animStateTimer += Time.get_deltaTime(); if (snatchTrans != null) { snatchTrans.set_rotation(owner._rotation); } if (handTrans != null) { renderer.SetPositonStart(handTrans.get_position()); } if (snatchTrans != null) { renderer.SetPositionEnd(snatchTrans.get_position()); } else if (snatchBulletTrans != null) { renderer.SetPositionEnd(snatchBulletTrans.get_position()); } switch (state) { case STATE.NONE: if (owner != null && owner.animator != null) { AnimatorStateInfo currentAnimatorStateInfo = owner.animator.GetCurrentAnimatorStateInfo(0); int shortNameHash = currentAnimatorStateInfo.get_shortNameHash(); if (shortNameHash == HASH_ANIMATOR_MOVE_LOOP) { animStateTimerForMoveLoop += Time.get_deltaTime(); if (animStateTimerForMoveLoop > animStateTimeLimitForMoveLoop) { owner.SetNextTrigger(0); animStateTimerForMoveLoop = 0f; } } } break; case STATE.SHOT: case STATE.SHOT_RELEASE: if (IsReached()) { owner.OnSnatchMoveEnd(1); } else if (IsAnimStateTimeLimit()) { owner.OnSnatchMoveEnd(1); } break; case STATE.SNATCH: if (target != null && target.isDead) { owner.SetNextTrigger(1); Cancel(); } break; case STATE.MOVE: owner.CheckSnatchMove(); break; case STATE.MOVE_LOOP: if (owner.IsArrivalPosition(GetSnatchPos(), 0f)) { owner.OnSnatchMoveEnd(0); animStateTimerForMoveLoop = 0f; } else if (owner.IsCoopNone() || owner.IsOriginal()) { animStateTimerForMoveLoop += Time.get_deltaTime(); if (animStateTimerForMoveLoop > animStateTimeLimitForMoveLoop) { owner.OnSnatchMoveEnd(0); animStateTimerForMoveLoop = 0f; } } break; } } }