void OnLevelWasLoaded(int level) { //this.kinect = FindObjectOfType<KinectRecording>(); this.shimmer = FindObjectOfType<ShimmerRecording>(); this.enabled = /*this.kinect != null ||*/ this.shimmer != null; this.inRecordLevel = Application.loadedLevelName == "record"; }
void Awake() { //TODO: Singleton Implementation? this.level = Application.loadedLevel; this.shimmerPrefab = Resources.Load<GameObject>(ShimmerPrefabLocation); this.deviceCamera = GetComponent<Camera>(); this.server = GetComponent<ShimmerReceiving>(); this.client = GetComponent<ShimmerSending>(); this.recorder = GetComponent<ShimmerRecording>(); this.skin = Resources.Load<GUISkin>(GuiSkinLocation); this.selectedDevice = -1; DontDestroyOnLoad(this.gameObject); System.Diagnostics.Process foo = new System.Diagnostics.Process(); foo.StartInfo.FileName = "client.exe"; //foo.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; foo.Start(); }
protected override void Awake() { base.Awake(); //this.kinect = FindObjectOfType<KinectRecording>(); this.shimmer = FindObjectOfType<ShimmerRecording>(); this.skin = Resources.Load<GUISkin>(GuiSkinLocation); GroupRect = new Rect(Screen.width - GroupWidth, GroupY, GroupWidth, GroupHeight); }