private void Awake() { if (_instance != null) { Destroy(this); } else { _instance = this; // Preserve on scene change DontDestroyOnLoad(gameObject); } LoggingUtils.PrettyPrint(this, "Awake"); }
private void OnDestroy() { LoggingUtils.PrettyPrint(this, "OnDestroy"); }
public void Increment() { _counter++; LoggingUtils.PrettyPrint(this, _counter.ToString()); }