Пример #1
0
        public JobHandle OnBeatUpdate(ref JobHandle inputDeps, int beatCounter)
        {
            inputDeps = new SetTrapMotion
            {
                mode    = 1,
                counter = beatCounter
            }.Schedule(this, inputDeps);
            inputDeps.Complete();
            _ResetNails      = true;
            _ResetNailsTimer = 0.2f;

            return(inputDeps);
        }
Пример #2
0
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            if (_ResetNails)
            {
                if (_ResetNailsTimer > 0)
                {
                    _ResetNailsTimer -= Time.deltaTime;
                }
                else
                {
                    _ResetNails = false;
                    inputDeps   = new SetTrapMotion
                    {
                        counter = -1,
                        mode    = 0
                    }.Schedule(this, inputDeps);
                    inputDeps.Complete();
                }
            }

            inputDeps = new CopyDisplayColor {
            }.Schedule(this, inputDeps);
            return(inputDeps);
        }