예제 #1
0
                void Start()
                {
                    gameObject.GetComponent <Camera>().targetTexture =
                        (RenderTexture)VisionCanvas.GetComponentInChildren <RawImage>().texture;
                    interactionPrefs = world.GetComponent <InteractionPrefsModalWindow>();
                    if (attached != null)
                    {
                        gameObject.transform.SetParent(attached);
                    }

                    objSelector = GameObject.Find("VoxWorld").GetComponent <ObjectSelector>();
                    //			visibleObjects = new HashSet<Voxeme>();
                }
예제 #2
0
                void Start()
                {
                    _world            = GameObject.Find("JointGestureDemo").GetComponent <JointGestureDemo>();
                    _interactionPrefs = _world.GetComponent <InteractionPrefsModalWindow>();
                    _objectSelector   = FindObjectOfType <ObjectSelector>();


                    // set up a time for "surprise" reaction
                    _reactionTimer          = new Timer();
                    _reactionTimer.Elapsed += Surprise;
                    _reactionTimer.Interval = ReactionDelayInterval;
                    // but don't start it yet
                    _reactionTimer.Enabled = false;

                    _perceivingInitialConfiguration = true;
                    _memorized = new Dictionary <Voxeme, List <GameObject> >();
                    gameObject.GetComponent <Camera>().targetTexture =
                        (RenderTexture)MemoryCanvas.GetComponentInChildren <RawImage>().texture;
                }