public override void Click(RaycastHit hit) { if (HelpManager.Instance.CurrentStep == TutorialStep.GrabBook) { //helpParticle.SetActive(false); helpOutline.enabled = false; helpOutlinePart2.enabled = true; } if (letterParticles != null) { letterParticles.StartPlaying(); letterParticles = null; } PlacementManager.Instance.GrabBook(this); }
public void AcceptLetter() { GameObject obj = Instantiate(acceptParticle, transform.position, transform.rotation); obj.transform.localScale = transform.lossyScale; MoveParticles moveParticles = obj.GetComponent <MoveParticles>(); moveParticles.StartMoving(book.transform); if (HelpManager.Instance.CurrentStep <= TutorialStep.Mail) { book.letterParticles = moveParticles; } else { moveParticles.StartPlaying(); } gameObject.SetActive(false); }