void OnEnable() { meshHandRenderMgr = this.GetComponent <MeshHandRenderManager>(); ZoomHand[] zoomHands = GetComponentsInChildren <ZoomHand>(); foreach (ZoomHand zoomHand in zoomHands) { if (zoomHand.handType == HandType.Left) { leftZoomHand = zoomHand; } else if (zoomHand.handType == HandType.Right) { rightZoomHand = zoomHand; } } }
void Awake() { meshHandRenderMgr = this.GetComponent <MeshHandRenderManager>(); velocityCalculator = this.GetComponent <VelocityCalculator>(); handVisibilityTracker = this.GetComponent <HandVisibilityTracker>(); }