コード例 #1
0
        private void Initialize()
        {
            HandsModule handManager = GameObject.FindObjectOfType <MetaContextBridge>().CurrentContext.Get <HandsModule>();

            handManager.OnHandEnterFrame += OnHandDataAppear;
            handManager.OnHandExitFrame  += OnHandDataDisappear;
        }
コード例 #2
0
        private void Start()
        {
            HandsModule handManager = FindObjectOfType <BaseMetaContextBridge>().CurrentContext.Get <HandsModule>();

            handManager.OnHandEnterFrame += OnHandDataAppear;
            handManager.OnHandExitFrame  += OnHandDataDisappear;
        }
コード例 #3
0
        private void ConstructHands(MetaFactoryPackage package)
        {
            var handsModule = new HandsModule();

            package.EventReceivers.Add(handsModule);
            package.MetaContext.Add(handsModule);
            HandObjectReferences references = new HandObjectReferences();

            package.MetaContext.Add(references);
            InteractionObjectOutlineFactory outlineFactory = new InteractionObjectOutlineFactory();

            outlineFactory.SubscribeToHandObjectReferences(references);
            package.MetaContext.Add(outlineFactory);
        }
コード例 #4
0
        private void ConstructHands(MetaFactoryPackage package)
        {
            var kernelCocoLauncher = new KernelCocoLauncherModule();

            package.EventReceivers.Add(kernelCocoLauncher);
            package.MetaContext.Add(kernelCocoLauncher);


            var handsModule = new HandsModule(_depthOcclusionTransform);

            package.EventReceivers.Add(handsModule);
            package.MetaContext.Add(handsModule);
            HandObjectReferences references = new HandObjectReferences();

            package.MetaContext.Add(references);
            InteractionObjectOutlineFactory outlineFactory = new InteractionObjectOutlineFactory();

            outlineFactory.SubscribeToHandObjectReferences(references);
            package.MetaContext.Add(outlineFactory);
        }