Exemple #1
0
    public void Update(IHost host, float timeRemaining, float poseTime)
    {
        if (poseTime == 0)
        {
            AudioMixerSnapshot[] mixerState = losing;
            if (host.Aligned())
            {
                host.Pulse();
                host.AddScore(1);
                mixerState = winning;
            }

            audio.outputAudioMixerGroup.audioMixer.TransitionToSnapshots(mixerState, new float[] { 1f }, 0.2f);

            stepIndex++;
            if (stepIndex >= routine.Steps.Count)
            {
                host.StopGame();
                return;
            }
            step = routine.Steps[stepIndex];

            if (timeRemaining > 0 && PoseTimeRemaining() > 0)
            {
                UpdatePose(host);
            }
            else
            {
                host.StopGame();
            }
        }
    }
Exemple #2
0
    public void Update(IHost host, float timeRemaining, float poseTime)
    {
        if (host.Aligned())
        {
            host.Pulse();
            host.AddScore(1);
            host.RelocateTargets();
            host.UpdatePoseTime(0, 1);
        }

        if (timeRemaining <= 0)
        {
            host.StopGame();
        }
    }
Exemple #3
0
    public void Update(IHost host, float timeRemaining, float poseTime)
    {
        if (poseTime == 0)
        {
            if (host.Aligned())
            {
                host.Pulse();
                host.AddScore(1);
            }

            if (timeRemaining > 0)
            {
                host.RelocateTargets();
                host.UpdatePoseTime(HoleConfiguration.INSTANCE.SkillTime, -1);
            }
            else
            {
                host.StopGame();
            }
        }
    }