Static ScoreManager class holding global game scoring and collectibles state. Stores current and high score, counts, best/current time, and many boolean flags for collected items (WM and Tofu series).
using Sandbox;
using Sandbox.VR;
using System;
public static class ScoreManager
{
// This value will persist between scene loads
public static int CurrentScore { get; set; }
public static int HighScore { get; set; } = 3000;
public static int WMCount { get; set; }
public static int TofuCount { get; set; }
public static float BestTime { get; set; } = 390f;
public static float CurrentTime { get; set; }
public static bool WMcollect { get; set; } = false;
public static bool WM2collect { get; set; } = false;
public static bool WM3collect { get; set; } = false;
public static bool WM4collect { get; set; } = false;
public static bool WM5collect { get; set; } = false;
public static bool WM6collect { get; set; } = false;
public static bool WM7collect { get; set; } = false;
public static bool WM8collect { get; set; } = false;
public static bool WM9collect { get; set; } = false;
public static bool WM10collect { get; set; } = false;
public static bool Tofucollect { get; set; } = false;
public static bool Tofu2collect { get; set; } = false;
public static bool Tofu3collect { get; set; } = false;
public static bool Tofu4collect { get; set; } = false;
public static bool Tofu5collect { get; set; } = false;
public static bool Tofu6collect { get; set; } = false;
public static bool Tofu7collect { get; set; } = false;
public static bool Tofu8collect { get; set; } = false;
public static bool Tofu9collect { get; set; } = false;
public static bool Tofu10collect { get; set; } = false;
}