// Use this for initialization void Start() { mIT2 = GameObject.Find("Main Camera").GetComponent <menuInTravel2>(); //skin = mIT2.skin; destaque = mIT2.destaque; opcoes = bancoDeTextos.falacoes[heroi.lingua]["menuPausa"].ToArray(); }
public static void pararFluxoHeroi(bool mit = true, bool daCam = true, bool doMB = true, bool parar = true) { GameObject G = GameObject.FindWithTag("Player"); if (doMB) { movimentoBasico mB = G.GetComponent <movimentoBasico>(); mB.enabled = false; if (parar) { mB.pararOHeroi(); } } if (daCam) { cameraPrincipal cam = G.GetComponent <cameraPrincipal>(); cam.enabled = false; } if (mit) { menuInTravel2 mIT2 = Camera.main.gameObject.GetComponent <menuInTravel2>(); mIT2.enabled = false; } }
void retornaPadraoJogo() { if (mens) { mens.fechaJanela(); } if (!mB) { mB = GameObject.FindWithTag("Player").GetComponent <movimentoBasico>(); } if (!cam) { cam = GameObject.FindWithTag("Player").GetComponent <cameraPrincipal>(); } if (!mIT2) { mIT2 = GameObject.FindWithTag("Main Camera").GetComponent <menuInTravel2>(); } mB.enabled = true; cam.enabled = true; mIT2.enabled = true; estado = estadoEstatuaAnubis.estadoNulo; }
// Use this for initialization void Start() { H = GetComponent <heroi>(); focandoHeroi(); paralisaInimigo(); Terra = GameObject.Find("Terrain"); GameObject G = GameObject.Find("CriatureAtivo"); statusTemporarioBase.statusAoGerente(G, H.criatureSai); aux = G.transform.position; movendoComCriature = (bool)G.GetComponent <movimentoBasico>(); olharEmLuta(); if (!movendoComCriature) { movimentoBasico mB = GetComponent <movimentoBasico>(); mB.pararOHeroi(); mB.enabled = false; menuInTravel2 mIT2 = GameObject.Find("Main Camera").GetComponent <menuInTravel2>(); if (mIT2) { mIT2.enabled = false; } } a = GetComponent <Animator>(); a.SetBool("chama", true); gameObject.AddComponent <animaTroca>(); }
void Start() { mIT2 = GameObject.Find("Main Camera").GetComponent <menuInTravel2>(); skin = mIT2.skin; caminhada = GetComponent <caminheAteOAlvo>(); tHeroi = GameObject.FindWithTag("Player").transform; mB = tHeroi.GetComponent <movimentoBasico>(); atualizaIndiceDeConversa(); }
// Use this for initialization void Start() { H = GameObject.FindWithTag("Player").GetComponent <heroi>(); cJ = GetComponent <conversaEmJogo>(); simOuNao = bancoDeTextos.falacoes[heroi.lingua]["simOuNao"].ToArray(); essaConversa = bancoDeTextos.falacoes[heroi.lingua][indiceDaConversa].ToArray(); menuInTravel2 T = Camera.main.transform.GetComponent <menuInTravel2>(); skin = T.skin; destaque = T.destaque; }
// Use this for initialization void Start () { G = GameObject.FindWithTag("Player"); cam = G.GetComponent<cameraPrincipal>(); H = G.GetComponent<heroi>(); mB = G.GetComponent<movimentoBasico>(); mIT2 = GameObject.Find("Main Camera").GetComponent<menuInTravel2>(); skin = mIT2.skin; destaque = mIT2.destaque; estado = "emEspera"; conversa = bancoDeTextos.falacoes[heroi.lingua]["armagedomDeInfinity"].ToArray(); falas = bancoDeTextos.falacoes[heroi.lingua]["falasDeArmagedom"].ToArray(); }
public void aoCriature() { if (!GetComponent <cameraPrincipal> ()) { //umCriature criature = GetComponent<umCriature>(); GameObject heroiX = GameObject.FindGameObjectWithTag("Player"); heroiX.AddComponent <gravidadeGambiarra>(); Criature X = heroiX.GetComponent <heroi>().criaturesAtivos[0]; movimentoBasico mB = heroiX.GetComponent <movimentoBasico> (); mB.enabled = false; heroiX.GetComponent <cameraPrincipal> ().enabled = false; cameraPrincipal cameraP = gameObject.AddComponent <cameraPrincipal> (); //print(criature+" : "+criature.X+" : "+criature.X.alturaCamera); cameraP.altura = X.alturaCamera; cameraP.distancia = X.distanciaCamera; cameraP.yMinLimit = -20; // cameraP.velocidadeMaxAngular = X.velocidadeMaxAngular; if (GetComponent <sigaOLider> ()) { GetComponent <sigaOLider> ().enabled = false; } if (GetComponent <UnityEngine.AI.NavMeshAgent> ()) { GetComponent <UnityEngine.AI.NavMeshAgent> ().enabled = false; } gameObject.AddComponent <movimentoBasico> (); menuInTravel2 mIT2 = Camera.main.GetComponent <menuInTravel2>(); if (mIT2) { mIT2.enabled = false; } if (!heroi.emLuta && !variaveisChave.shift["TrocaGolpes"]) { vidaEmLuta v = GameObject.Find("Terrain").AddComponent <vidaEmLuta> (); v.minhaLuta = true; v.doMenu = GetComponent <umCriature>().X; v.nomeVida = "meuCriature"; v.n = 2; v.posX = 0.74f; v.posY = 0.78f; } } }
// Use this for initialization protected void Start() { G = GameObject.Find("Main Camera"); //pJ = G.GetComponent<pausaJogo>(); mIT2 = G.GetComponent<menuInTravel2>(); T = GameObject.FindWithTag("Player").transform; mB = T.GetComponent<movimentoBasico>(); cam = T.GetComponent<cameraPrincipal>(); H = T.GetComponent<heroi>(); skin = mIT2.skin; destaque = mIT2.destaque; simOuNao = bancoDeTextos.falacoes[heroi.lingua]["simOuNao"].ToArray(); }
// Use this for initialization protected void Start() { G = GameObject.Find("Main Camera"); //pJ = G.GetComponent<pausaJogo>(); mIT2 = G.GetComponent <menuInTravel2>(); T = GameObject.FindWithTag("Player").transform; mB = T.GetComponent <movimentoBasico>(); cam = T.GetComponent <cameraPrincipal>(); H = T.GetComponent <heroi>(); skin = mIT2.skin; destaque = mIT2.destaque; simOuNao = bancoDeTextos.falacoes[heroi.lingua]["simOuNao"].ToArray(); }
void voltaHeroi() { GetComponent <cameraPrincipal>().enabled = true; if (!GetComponent <movimentoBasico>().enabled) { GetComponent <movimentoBasico>().enabled = true; } menuInTravel2 mIT2 = GameObject.Find("Main Camera").GetComponent <menuInTravel2>(); if (mIT2) { mIT2.enabled = true; } //a.CrossFade("padrao",0.25f); Destroy(this, 1.1f); }
void padraoMensagem(GameObject col) { podeAvancar = false; if (!mens) { mens = gameObject.AddComponent <mensagemBasica>(); } mIT2 = Camera.main.transform.GetComponent <menuInTravel2>(); mIT2.enabled = false; cam = col.GetComponent <cameraPrincipal>(); cam.enabled = false; mB.enabled = false; mB.pararOHeroi(); }
public void retornaAoHeroi() { GameObject heroi = GameObject.FindGameObjectWithTag("Player"); focandoHeroi(); cameraPrincipal cam = heroi.GetComponent <cameraPrincipal> (); cam.enabled = true; cam.iniciou = true; heroi.GetComponent <movimentoBasico> ().enabled = true; cameraPrincipal camera = GetComponent <cameraPrincipal> (); Destroy(camera); GetComponent <sigaOLider> ().enabled = true; GetComponent <UnityEngine.AI.NavMeshAgent> ().enabled = true; movimentoBasico meuMovedor = GetComponent <movimentoBasico> (); menuInTravel2 mIT2 = Camera.main.GetComponent <menuInTravel2>(); if (mIT2) { mIT2.enabled = true; } vidaEmLuta v = GameObject.Find("Terrain").GetComponent <vidaEmLuta> (); if (v) { v.fechaJanela(); } Destroy(meuMovedor); GetComponent <Animator>().SetBool("noChao", true); }
// Use this for initialization void Start() { mensagemDaqui = bancoDeTextos.falacoes[heroi.lingua][chaveMensagem][0]; mIT2 = GameObject.Find("Main Camera").GetComponent <menuInTravel2>(); }
// Use this for initialization void Start() { mIT2 = GameObject.Find("Main Camera").GetComponent<menuInTravel2>(); //skin = mIT2.skin; destaque = mIT2.destaque; opcoes = bancoDeTextos.falacoes[heroi.lingua]["menuPausa"].ToArray(); }
// Use this for initialization void Start() { G = GameObject.FindWithTag("Player"); cam = G.GetComponent<cameraPrincipal>(); H = G.GetComponent<heroi>(); mB = G.GetComponent<movimentoBasico>(); mIT2 = GameObject.Find("Main Camera").GetComponent<menuInTravel2>(); skin = mIT2.skin; destaque = mIT2.destaque; estado = "emEspera"; conversa = bancoDeTextos.falacoes[heroi.lingua]["armagedomDeInfinity"].ToArray(); falas = bancoDeTextos.falacoes[heroi.lingua]["falasDeArmagedom"].ToArray(); }
// Use this for initialization void Start() { mensagemDaqui = bancoDeTextos.falacoes[heroi.lingua][chaveMensagem][0]; mIT2 = GameObject.Find("Main Camera").GetComponent<menuInTravel2>(); }
void padraoMensagem(GameObject col) { podeAvancar = false; if(!mens) mens = gameObject.AddComponent<mensagemBasica>(); mIT2 = Camera.main.transform.GetComponent<menuInTravel2>(); mIT2.enabled = false; cam = col.GetComponent<cameraPrincipal>(); cam.enabled = false; mB.enabled = false; mB.pararOHeroi(); }
void Start() { mIT2 = GameObject.Find("Main Camera").GetComponent<menuInTravel2>(); skin = mIT2.skin; caminhada = GetComponent<caminheAteOAlvo>(); tHeroi = GameObject.FindWithTag("Player").transform; mB = tHeroi.GetComponent<movimentoBasico>(); atualizaIndiceDeConversa(); }
void retornaPadraoJogo() { if(mens) mens.fechaJanela(); if(!mB) mB = GameObject.FindWithTag("Player").GetComponent<movimentoBasico>(); if(!cam) cam = GameObject.FindWithTag("Player").GetComponent<cameraPrincipal>(); if(!mIT2) mIT2 = GameObject.FindWithTag("Main Camera").GetComponent<menuInTravel2>(); mB.enabled = true; cam.enabled = true; mIT2.enabled = true; estado = estadoEstatuaAnubis.estadoNulo; }