private IEnumerator WaitForProvider() { while (Provider == null) { yield return(WaitFor.EndOfFrame); } cargoConsole = Provider.GetComponent <CargoConsole>(); cargoConsole.cargoGUI = this; }
IEnumerator WaitForProvider() { while (Provider == null) { yield return(WaitFor.EndOfFrame); } providerGameObject = Provider; cargoConsole = providerGameObject.GetComponent <CargoConsole>(); cargoConsole.NetTabRef(gameObject); }