private void BringToOriginalState() { if (animationPaused) { autoRotator.GetComponent <Animator>().enabled = true; TogglePauseUI("Pause/Stop Animation", 1); animationPaused = false; } autoRotator.gameObject.GetComponent <Animator>().SetBool("walkthroughStarted", false); autoRotator.AutoRotating = true; labelShowing = true; foreach (Button button in topPanelButtons) { button.interactable = true; } }
void Launch() { GameObject a = GameObject.Instantiate(ammo, transform.position, transform.rotation); a.GetComponent <Rigidbody>().velocity = transform.right * shootPower + (transform.up + transform.forward) * burstRate; shakeModel.localPosition -= new Vector3(0, 0, shakePower); gr.f += grd; ar准心.GetComponent <zhunxinKuoSan>().setX(shakePower * shakeRate); }