コード例 #1
0
    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);
    }
コード例 #2
0
    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);
    }