void Update() { if (WeaponSwap.InformQ() == true) { CrossHair.SetActive(false); return; } if (PLCameraFocus.InformForcusState() == true) { CrossHair.SetActive(true); } else { CrossHair.SetActive(false); } }
void Update() { if (PhotonScriptor.ConnectingScript.informPlayerID() != PN) { return; } if (TimeManager.BluePrint.BruePrintPhaze.InformBluePrintState() == true) { return; } if (PN == 1) { if (PlayerHp.InformHitStop()) { HitStopMul = 0.7f; } else { HitStopMul = 1f; } } else { if (PlayerHP2.InformHitStop()) { HitStopMul = 0.7f; } else { HitStopMul = 1f; } } if (PLCameraFocus.InformForcusState() == true) { ADSMul = 0.5f; } else { ADSMul = 1f; } if (PlayerClouch.InformClouch() == true) { ClouchMul = 0.4f; } else { ClouchMul = 1f; } if (BluePrint.DrawBluePrint.InformPlayerState() == 3) { BuffMul = 1.5f; } else { BuffMul = 1.0f; } if (Input.GetKeyDown(KeyCode.LeftShift)) { isDash = !isDash; if (isDash == true) { SprintMul = 1.8f; } if (isDash == false) { SprintMul = 1; } } if (Input.GetKeyDown(KeyCode.LeftControl))//しゃがみダッシュ禁止 { SprintMul = 1; } if (AnimationConrollScripts.PLMoveAnimeControl.InformJumping() == true)//ジャンプ中は早く動ける { groundspeed = 1.1f; } if (AnimationConrollScripts.PLMoveAnimeControl.InformJumping() == false) { groundspeed = 1.0f; } characterMove(); }