private bool GF_espera; //GF está esperando que o player interaja // Use this for initialization void Start() { happyBar = gfFrame.GetComponentsInChildren <Image>(); gfManager = FindObjectOfType <GFManager>(); telController = FindObjectOfType <TelephoneController>(); objetos = FindObjectOfType <ObjectsPlaces>(); player = FindObjectOfType <PlayerController>(); escada1 = FindObjectOfType <ClimbUpStairs>(); escada2 = FindObjectOfType <ClimbDownStairs>(); emotes = GetComponentInChildren <EmotesController>(); //Define o começo; begin = Time.time; //Define o Happy Happy = Random.Range(45, 65); //Marca a Posição Inicial startMarker = this.transform.position; oldStartMarker = startMarker; //Verifica o Andar if (startMarker.y >= 0.5f && startMarker.y <= 2f) { AndarGF = 1; } else { AndarGF = 2; } oldAndar = AndarGF; }
// Use this for initialization void Start() { playerController = FindObjectOfType <PlayerController>(); stairsDown = FindObjectOfType <ClimbUpStairs>(); }