void ComunsCarregado() { if (StaticInstanceExistence <IGameController> .SchelduleExistence(ComunsCarregado, this, () => { return(AbstractGameController.Instance); })) //if (ExistenciaDoController.AgendaExiste(ComunsCarregado, this)) { SceneManager.sceneLoaded -= CarregouComuns; SceneManager.sceneLoaded += SetarCenaPrincipal; SceneManager.sceneLoaded += TatudoCarregado; if (SaveDatesManager.s.SavedGames.Count > indiceDoJogo) { S = SaveDatesManager.s.SavedGames[indiceDoJogo]; } else { S = null; } if (S == null) { fase = FasesDoLoad.carregando; aSerCarregado = 1; a2 = new AsyncOperation[1]; a2[0] = AditiveLoadScene(NomesCenas.TutoScene); } else { NomesCenas[] N2 = DescarregarCenasDesnecessarias(S.VariaveisChave.CenasAtivas.ToArray()); numCarregador = 0; aSerCarregado = N2.Length; for (int i = 0; i < N2.Length; i++) { SceneManager.UnloadSceneAsync(N2[i].ToString()); } FuncaoCarregadora(); } } }
// Use this for initialization void Start() { if (StaticInstanceExistence <IGameController> .SchelduleExistence(Start, this, () => { return(AbstractGameController.Instance); })) { if (AbstractGameController.Instance.MyKeys.VerificaAutoShift(ID)) { A.Play("bauAberto"); } textoDoBotao = TextBank.RetornaListaDeTextoDoIdioma(TextKey.textoBaseDeAcao)[1]; SempreEstaNoTrigger(); } MessageAgregator <MsgSendExternaPanelCommand> .AddListener(OnReceiveCommands); MessageAgregator <MsgAnimationPointCheck> .AddListener(OnReceiveAnimationPointCheck); }