// Use this for initialization void Start () { agent = GetComponent<NavMeshAgent>(); anim = GetComponent<Animator>(); GameObject entrance = GameObject.FindGameObjectWithTag ("Entrance"); transform.position = entrance.transform.position; GameObject talked = GameObject.FindGameObjectWithTag("Event"); talk = talked.GetComponent<EventLevel1>(); }
// Use this for initialization void Start() { agent = GetComponent <NavMeshAgent>(); anim = GetComponent <Animator>(); GameObject entrance = GameObject.FindGameObjectWithTag("Entrance"); transform.position = entrance.transform.position; GameObject talked = GameObject.FindGameObjectWithTag("Event"); talk = talked.GetComponent <EventLevel1>(); }
// Use this for initialization void Start () { GameObject lvl1 = GameObject.FindGameObjectWithTag("Event"); lv1 = lvl1.GetComponent<EventLevel1>(); }
// Use this for initialization void Start() { GameObject lvl1 = GameObject.FindGameObjectWithTag("Event"); lv1 = lvl1.GetComponent <EventLevel1>(); }