/// <summary> /// Set the instance so this script can be easily found. /// </summary> void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } }
/// <summary> /// Set the instance so this script can be easily found. /// </summary> void Awake() { if (instance == null) instance = this; }