IEnumerator WaitForProvider() { while (Provider == null) { yield return(WaitFor.EndOfFrame); } console = Provider.GetComponentInChildren <SyndicateOpConsole>(); }
private void Awake() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } }