private void Initialize()
        {
            HandsModule handManager = GameObject.FindObjectOfType <MetaContextBridge>().CurrentContext.Get <HandsModule>();

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

            handManager.OnHandEnterFrame += OnHandDataAppear;
            handManager.OnHandExitFrame  += OnHandDataDisappear;
        }
Exemple #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);
        }
        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);
        }