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