Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
    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);
    }