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