예제 #1
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        MoveParticles MoveParticles = new MoveParticles()
        {
            particlePositions       = m_particleMoveData.particlePositions,
            particleDatas           = m_particleMoveData.particleDatas,
            phaserTimeData          = PhaseManager.GetPhaserTimeData(),
            phaserFrameTimeStepData = PhaseManager.GetPhaserAngleStepAtThisFrame()
        };
        JobHandle MoveParticlesJobHandle = MoveParticles.Schedule(m_particleMoveData.Length, 1023, inputDeps);

        return(MoveParticlesJobHandle);
    }
예제 #2
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);
    }
예제 #3
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);
    }