Exemple #1
0
        public void OnStateLevelLoad(int level)
        {
            dataPlayState = GameObject.Find ("DataPlayState").GetComponent<DataPlayState> ();
            refGUIPlay = GameObject.Find("GUIPlay").GetComponent<Transform>();

            this.modulePrefabs = dataPlayState.modulePrefabs;

            // Aqui instanciamos el GUI_module_1(Clone)
            module = Object.Instantiate (modulePrefabs [CualEs()], new Vector3(0.5F, 0.6F, 0.12F), modulePrefabs [CualEs()].transform.rotation) as GameObject;
            module.transform.parent = refGUIPlay;
        }
Exemple #2
0
        public void OnStateLevelLoad(int level)
        {
            dataPlayState = GameObject.Find ("DataPlayState").GetComponent<DataPlayState> ();

            this.modulePrefabs = dataPlayState.modulePrefabs;

            // Aqui instanciamos el GUI_module_1(Clone)
            module = Object.Instantiate (modulePrefabs [CualEs()], modulePrefabs [CualEs()].transform.position, modulePrefabs [CualEs()].transform.rotation) as GameObject;

            TecladoMensaje.modulo = module.GetComponent<RecibirMensaje>();
        }