void Update() { if (UISelectManager.IsNoneMode) { return; } if (ModeManager.IsGameMode) { return; } SelectBox.SetActive(false); ResetButton.enabled = true; UISelectManager.ChangeNoneMode(); }
// Update is called once per frame void Update() { count += Time.deltaTime; rotationAngle += Mathf.PI * rotationSpeed * Time.deltaTime; transform.position = new Vector3( centerObject.position.x + Mathf.Sin(rotationAngle) * moveRadius, transform.position.y, centerObject.position.x + Mathf.Cos(rotationAngle) * moveRadius); transform.LookAt(new Vector3(0, transform.position.y - 2, 0)); if (alpha >= 1) { ModeManager.ChangeGameMode(); UISelectManager.ChangeNoneMode(); Application.LoadLevel("GameMain"); } Reset(); }
void None() { Capture.ButtonEnable(); UISelectManager.ChangeNoneMode(); }
public void NonActiveSelectBox() { SelectBox.SetActive(false); UISelectManager.ChangeNoneMode(); ResetButton.enabled = true; }