private void Awake() { if (instance == null) { instance = this; } }
private void Awake() { HitStop = gameObject.AddComponent <HitStopManager>(); if (PlayerPrefs.HasKey(COMPLETION_PREF_ID)) { gameCompleted = PlayerPrefs.GetInt(COMPLETION_PREF_ID) > 0; } }
void Awake() { fixedDeltaTimeCopy = Time.fixedDeltaTime; if (instance != null && instance != this) { Destroy(this); } else { instance = this; } }