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");
    }
Ejemplo n.º 2
0
 void Awake()
 {
     NPC = transform.parent.GetComponent <OuterRadiusScript>();   // get parent script...  not needed for static variable. only name script
 }