void Start() { animator = GetComponent <Animator>(); findPosition = exitPoint.GetComponent <checkLocal>(); }
public void getProperPosition() { findPosition = exitPoint.GetComponent <checkLocal>(); }
void Start() { findPosition = exitPoint.GetComponent <checkLocal>(); player = GameObject.FindGameObjectWithTag("Player"); roomName = transform.parent.name; }