Exemple #1
0
        protected async Task pulseIndicator()
        {
            await GameTask.Delay(100);

            while (!IsCollected)
            {
                using (Prediction.Off()) {
                    Particles.Create(indicator, Position + Vector3.Up * 0.5f);
                }
                await GameTask.DelaySeconds(timeBetweenIndicators);
            }
        }
Exemple #2
0
        protected async Task startEmitting()
        {
            await GameTask.Delay(100);

            if (!ShouldEmitEffects)
            {
                return;
            }
            using (Prediction.Off()) {
                mainParticles    = Particles.Create(main, Position + Vector3.Up * 32);
                fieldUpParticles = Particles.Create(field, Position);
                fieldUpParticles.SetForward(0, Vector3.Up);
                fieldDownParticles = Particles.Create(field, Position + Vector3.Up * 80);
                fieldDownParticles.SetForward(0, Vector3.Down);
            }
        }