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