void Start()
 {
     animationInput  = GameObject.Find("Player").GetComponent <AnimationInput>();
     flyAmmoLogic    = GameObject.FindGameObjectWithTag("Player").GetComponent <FlyAmmoLogic>();
     playerMovement  = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>();
     waitingBarImage = GameObject.Find("Waiting Bar Image").GetComponent <Image>();
     waitingBarImage.gameObject.SetActive(false);
     hintImage.gameObject.SetActive(false);
 }
Example #2
0
 void Start()
 {
     dialogueCanvas.gameObject.SetActive(true);
     dialogueText.text = "";
     StartCoroutine("Type");
     foodSpawner    = GetComponent <FoodSpawner>();
     playerMovement = GameObject.Find("Player").GetComponent <PlayerMovement>();
     animationInput = GameObject.Find("Player").GetComponent <AnimationInput>();
     ScriptsAffectedByDialogue(false);
 }
Example #3
0
 void Start()
 {
     canPause = true;
     pauseCanvas.gameObject.SetActive(false);
     animationInput = GameObject.Find("Player").GetComponent <AnimationInput>();
 }