public virtual void Awake() { if(Instance == null) { DontDestroyOnLoad(gameObject); Instance = this; CheckForAndRunJobs(); } else { GameObject.DestroyImmediate(gameObject); } }
public virtual void Awake() { if (Instance == null) { DontDestroyOnLoad(gameObject); Instance = this; CheckForAndRunJobs(); } else { GameObject.DestroyImmediate(gameObject); } }