void Awake() { if (mInstance == null) { mInstance = this; mSpawns = new Dictionary <int, SpawnInfo>(); } }
void OnDestroy() { if (mInstance == this) { DoSave(); mInstance = null; } }