Пример #1
0
	//To be called from BeatGUIBar
	public void HitFullBeat(Pose data)
	{
		for (int i = 0; i < birds.Length; i++)
		{
			if (!birds[i].IsInitialized()) continue;

			ControllerInput input = birds[i].GetInput();
			PoseData currentPose = Pose.CalculateFromController(input);

			//compare
			PoseDiff poseDiff = data.CompareWithController(input, 0);
			float diff = poseDiff.totalDiff;


			//Log.Weikie("pose difference:" + diff);
			PlayerScoreFeedback(diff, i);
			
			lastPose[i] = currentPose;
		}
		ScoreChanged();
	}
Пример #2
0
    //To be called from BeatGUIBar
    public void HitFullBeat(Pose data)
    {
        for (int i = 0; i < birds.Length; i++)
        {
            if (!birds[i].IsInitialized())
            {
                continue;
            }

            ControllerInput input       = birds[i].GetInput();
            PoseData        currentPose = Pose.CalculateFromController(input);

            //compare
            PoseDiff poseDiff = data.CompareWithController(input, 0);
            float    diff     = poseDiff.totalDiff;


            //Log.Weikie("pose difference:" + diff);
            PlayerScoreFeedback(diff, i);

            lastPose[i] = currentPose;
        }
        ScoreChanged();
    }