Ejemplo n.º 1
0
 private IEnumerator WaitForProvider()
 {
     while (Provider == null)
     {
         yield return(WaitFor.EndOfFrame);
     }
     CloningConsole = Provider.GetComponentInChildren <CloningConsole>();
     CloningConsole.RegisterConsoleGUI(this);
     //Subscribe to change event from CloningConsole.cs
     UpdateDisplay();
 }
Ejemplo n.º 2
0
 void Start()
 {
     if (Provider != null)
     {
         //Makes sure it connects with the dispenser properly
         CloningConsole = Provider.GetComponentInChildren <CloningConsole>();
         CloningConsole.RegisterConsoleGUI(this);
         //Subscribe to change event from CloningConsole.cs
         UpdateDisplay();
     }
 }