示例#1
0
 /*
  * Disable and enable UI, enable cursor, deactivate the tattoo hand and the stencil.
  * Called in Update(), or from a button press.
  */
 protected virtual void FinishTheDrawing()
 {
     progressText.GetComponent <Animator>().SetTrigger("Trans");
     finishedText.GetComponent <Animator>().SetTrigger("Trans");
     Cursor.visible   = true;
     Cursor.lockState = CursorLockMode.None;
     Camera.main.GetComponent <CameraFollow>().enabled = false;
     moveHandRotate.gameObject.SetActive(false);
     finishedPressed = true;
     StartCoroutine(LerpCameraToPos(nextCameraTarget));
     gradientImg.GetComponent <Animator>().SetTrigger("FullWhite");
     AudioManager.instance.PlayFinishedSound();
     curStencil.GetComponent <MeshRenderer>().enabled = false;
     curStencil.DeactivateChildren();
 }