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;
            }
        }
    }
示例#2
0
 void Awake()
 {
     meshHandRenderMgr     = this.GetComponent <MeshHandRenderManager>();
     velocityCalculator    = this.GetComponent <VelocityCalculator>();
     handVisibilityTracker = this.GetComponent <HandVisibilityTracker>();
 }