// Use this for initialization void Start() { // Inicializando Valor Das Variaveis Publicas Somente Para ComunicaƧao (assim evitando erros) comunication = false; start_dial = false; // cores this.gameObject.GetComponent<SpriteRenderer> ().color = new Color (Random.Range(0,1f),Random.Range(0,1f),Random.Range(0,1f)); // Importanto Componentes (<Scripts>,<SpriteRenderer>) plr_spr = GameObject.FindGameObjectWithTag("plr_bln").GetComponent<SpriteRenderer>(); plr_bln = GameObject.FindGameObjectWithTag("Player").GetComponent<ComunicationAndStatusPlayer>(); plr_mov = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerMove>(); cntrl = GameObject.Find("Main Camera").GetComponent<CamControl>(); kpt_cool = GameObject.FindGameObjectWithTag("Player").GetComponent<KeepinItCool>(); //anima = GetComponent<NPCAnim>(); }
// Use this for initialization void Start() { plr_cm = GameObject.FindGameObjectWithTag ("Player").GetComponent<ComunicationAndStatusPlayer>(); kptc = GameObject.FindGameObjectWithTag ("Player").GetComponent<KeepinItCool>(); //cam = GameObject.Find("Main Camera").GetComponent<CamControl>(); }