Пример #1
0
 void Awake()
 {
     nav        = GetComponent <NavMeshAgent> ();
     render     = GetComponent <Renderer> ();
     colas      = GameObject.FindObjectsOfType <SistemaCola> ();
     cajas      = GameObject.FindObjectsOfType <SistemaCaja> ();
     simulacion = FindObjectOfType <UI_Simulacion> ();
     //obtener R script
     _Rcontrol = GameObject.FindObjectOfType <Rcontroller>();
     connectBD = GameObject.FindObjectOfType <Connect>();
 }
Пример #2
0
    void Awake()
    {
        spawnPersonas = FindObjectOfType <SpawnPersonas> ();
        colas         = GameObject.FindObjectsOfType <SistemaCola> ();
        cajas         = GameObject.FindObjectsOfType <SistemaCaja> ();

        //obtiene el componente de los 4 cajeros
        sis1      = GameObject.Find("E1_S1").GetComponent <SistemaCaja> ();
        sis2      = GameObject.Find("E1_S2").GetComponent <SistemaCaja> ();
        sis3      = GameObject.Find("E1_S3").GetComponent <SistemaCaja> ();
        sis4      = GameObject.Find("E1_S4").GetComponent <SistemaCaja> ();
        _Rcontrol = GetComponent <Rcontroller>();
    }