// Update is called once per frame void Update() { if ((previousPlaceState != ARController.placeState) && (ARController.placeState == GuidedARController.PlaceState.SHOW)) { gameObject.transform.position = startPoint.position; gameObject.transform.rotation = startPoint.rotation; } previousPlaceState = ARController.placeState; if (ARController.placeState == GuidedARController.PlaceState.SHOW) { CheckforInput(); CheckState(); TurnTowardCamera(); MoveTowardPlayer(); } }
// Update is called once per frame void Update() { if ((previousPlaceState != ARController.placeState) && (ARController.placeState == GuidedARController.PlaceState.SHOW)) { gameObject.transform.position = startPoint.position; gameObject.transform.rotation = startPoint.rotation; ClearDest(); } previousPlaceState = ARController.placeState; if (ARController.placeState == GuidedARController.PlaceState.SHOW) { ReportState(); CheckState(); } }