// Start is called before the first frame update void Start() { gm = GameManager.instance; screenInput = ScreenInput.instance; if (type == SRType.Room) { if (gm.isSceneNew(roomIndex)) { gm.loadRoomFromFile(roomIndex); gm.instantiateRoom(); gm.SaveData(); if (intro != null && intro.length != 0) { playTTS(intro); deactivate(intro.length); Invoke("introReadFocus", intro.length); } else { introReadFocus(); } } else { if (gm.onlinePlay) //MIRA SI HAY DATOS EN LA NUBE { print("Datos online"); gm.loadFromWeb(); } else //MIRA DATOS LOCALES { print("Datos locales"); gm.loadLocalData(); } gm.instantiateRoom(); currentList.ReadFocus(); } // Nos aseguramos de la asignación de los objetos // ya que Unity no garantiza el orden de los Starts inventory.SetListToChildren(); scene.SetListToChildren(); } else { introReadFocus(); } }
public void SetList(SRList srl) { prevList = currentList; currentList = srl; currentList.ReadFocus(); }
// Start is called before the first frame update void Start() { screenInput = ScreenInput.instance; currentList.ReadFocus(); }