void Start () { visual = gameObject.GetComponent<VisualGuard> (); player = proximityDetector.GetComponent<ProximityDetector> ().player; setupProximityDetector (); }
void Start () { anim = gameObject.GetComponent<Animator> (); visual = gameObject.GetComponent<VisualGuard> (); opposite = Quaternion.Euler (0, 180, 0); }