using ARLocation; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ArrowControl : MonoBehaviour { public GameObject arrowPostion; public Camera myPosition; public GameObject arrowColor; public Material[] arrowMaterial; private void FixedUpdate() { if (Vector3.Distance(arrowPostion.transform.position,Camera.main.transform.position) >= 10f) //화살의 위치와 카메라의 위치 { arrowPostion.GetComponent().PlaybackSettings.Speed = 0f; arrowColor.GetComponent().material = arrowMaterial[1]; } else { arrowPostion.GetComponent().PlaybackSettings.Speed = 3f; arrowColor.GetComponent().material = arrowMaterial[0]; } } }