public void ResizeBasket() { GlobalControl.Difficulty difficulty = GlobalControl.Instance.userSize; if (difficulty == GlobalControl.Difficulty.EXTREMELY_EASY) { transform.localScale = new Vector3(9, 6, 1); } else if (difficulty == GlobalControl.Difficulty.VERY_EASY) { transform.localScale = new Vector3(8, 6, 1); } else if (difficulty == GlobalControl.Difficulty.EASY) { transform.localScale = new Vector3(7, 6, 1); } else if (difficulty == GlobalControl.Difficulty.MEDIUM) { transform.localScale = new Vector3(6, 6, 1); } else if (difficulty == GlobalControl.Difficulty.HARD) { transform.localScale = new Vector3(5, 6, 1); } else if (difficulty == GlobalControl.Difficulty.VERY_HARD) { transform.localScale = new Vector3(4, 6, 1); } else // extremely_hard { transform.localScale = new Vector3(3, 6, 1); } }
public void AdjustSensitivity() { GlobalControl.Difficulty difficulty = GlobalControl.Instance.userSensitivity; if (difficulty == GlobalControl.Difficulty.EXTREMELY_EASY) { sensitivity = 0.5f; } else if (difficulty == GlobalControl.Difficulty.VERY_EASY) { sensitivity = 0.55f; } else if (difficulty == GlobalControl.Difficulty.EASY) { sensitivity = 0.6f; } else if (difficulty == GlobalControl.Difficulty.MEDIUM) { sensitivity = 0.65f; } else if (difficulty == GlobalControl.Difficulty.HARD) { sensitivity = 0.7f; } else if (difficulty == GlobalControl.Difficulty.VERY_HARD) { sensitivity = 0.75f; } else // extremely_hard { sensitivity = 0.8f; } }
// Records trial data into the data list public void recordTrial(float time, int trialNum, float score, float timeSinceSpawned, bool caught, Vector2 CoP, GlobalControl.Difficulty spawnDif, GlobalControl.Difficulty userSizeDif, GlobalControl.Difficulty fallSpeedDif, GlobalControl.Difficulty userSensitivityDif, GlobalControl.Difficulty fruitSizeDif, GlobalControl.Difficulty spawnFrequencyDif) { trialData.Add(new TrialData(time, trialNum, score, timeSinceSpawned, caught, CoP, spawnDif, userSizeDif, fallSpeedDif, userSensitivityDif, fruitSizeDif, spawnFrequencyDif)); }
public readonly GlobalControl.Difficulty spawnFrequencyDif; // difficulty of spawn frequency public TrialData(float time, int trialNum, float score, float timeSinceSpawned, bool caught, Vector2 CoP, GlobalControl.Difficulty spawnDif, GlobalControl.Difficulty userSizeDif, GlobalControl.Difficulty fallSpeedDif, GlobalControl.Difficulty userSensitivityDif, GlobalControl.Difficulty fruitSizeDif, GlobalControl.Difficulty spawnFrequencyDif) { this.time = time; this.trialNum = trialNum; this.score = score; this.timeSinceSpawned = timeSinceSpawned; this.caught = caught; this.CoP = CoP; this.spawnDif = spawnDif; this.userSizeDif = userSizeDif; this.fallSpeedDif = fallSpeedDif; this.userSensitivityDif = userSensitivityDif; this.fruitSizeDif = fruitSizeDif; this.spawnFrequencyDif = spawnFrequencyDif; }