void Update() { if (PreParationTime.InformPreparationState() == false) { if (Cubestate == true) { CreativeCube.SetActive(false); CreativeCube2.SetActive(false); Cubestate = false; CubIncreased = false; return; } } if (PreParationTime.InformPreparationState() == true) { if (Cubestate == false) { CreativeCube.SetActive(true); CreativeCube2.SetActive(true); Cubestate = true; if (CubIncreased == true) { CubeSet.IncreaseCube(); } return; } } }
// Update is called once per frame void Update() { if (PreParationTime.InformPreparationState() == true) { Gunstate = false; Gun.SetActive(false); Gun2.SetActive(false); return; } if (Gunstate == false) { Gunstate = true; Gun.SetActive(true); Gun2.SetActive(true); } }
void Update() { if (PN != PhotonScriptor.ConnectingScript.informPlayerID()) { return; } if (TimeManager.BluePrint.BruePrintPhaze.InformBluePrintState()) { return; } if (IntercalTimeManager.InformIntervalState() == true) { wannaToShoot = 0; return; } if (UI.SettingPanel.SettingPanelController.InformPanelState() == true) { return; } if (PreParationTime.InformPreparationState() == true) { magazine = magazineMax; magazines = magazineMaxs; } if (Player.BluePrint.DrawBluePrint.InformPlayerState() == 1) { bulletPlusBool = true; } else { bulletPlusBool = false; } shot = false; if (MainPhaze.InformMainphaze() == false) { return; } if (PreParationTime.InformPreparationState() == true) { return; } if (AnimationConrollScripts.PLMoveAnimeControl.InformSmoking() == true) { return; } if (Player.WeaponSwap.InformQ() == true) { return; } if (Player.WeaponSwap.InformSwap() == true) { return; } ReloadCheck(); if (magazine < magazineMax && Player.WeaponSwap.InformWeapon() == false) { if (Input.GetKeyDown(KeyCode.R)) { reloadBool = true; } } if (magazines < magazineMaxs && Player.WeaponSwap.InformWeapon() == true) { if (Input.GetKeyDown(KeyCode.R)) { reloadBool = true; } } if (Player.WeaponSwap.InformSwap() == true) { reloadBool = false; } if (ShootableM() == true) { ShootM(); } }