// Use this for initialization void Start() { player = FindObjectOfType <PlayerController>(); staticTextBoxManager = GetComponent <StaticTextBoxManager>(); //outerRadiusScript = FindObjectOfType<OuterRadiusScript>(); if (shoutBoxActive) { enableShoutBox(); } else { disableShoutBox(); } }
void Awake() { playerController = FindObjectOfType <PlayerController>(); npcAnim = GetComponent <Animator>(); npc = transform.gameObject; // npc radius outerRadiusScript = GetComponentInChildren <OuterRadiusScript>(); // game controller gameController = GameObject.FindGameObjectWithTag("GameController"); textBoxManager = gameController.GetComponent <StaticTextBoxManager>(); // player controller player = GameObject.FindGameObjectWithTag("Player"); }