/// <summary> /// Sets all references. /// </summary> void Awake() { instance = this; DontDestroyOnLoad(this.gameObject); }