/** [シングルトン]constructor */ private PerformanceCounter() { //ルート。 this.root_gameobject = new UnityEngine.GameObject(); this.root_gameobject.name = "PerformanceCounter"; UnityEngine.Transform t_root_transform = this.root_gameobject.GetComponent <UnityEngine.Transform>(); UnityEngine.GameObject.DontDestroyOnLoad(this.root_gameobject); //フレームデータ。 this.framedata = new FrameData(); //カメラ。 this.camera_gameobject = Fee.Instantiate.Instantiate.CreateOrthographicCameraObject("Camera", t_root_transform, 999.0f); this.camera_monobehaviour = this.camera_gameobject.AddComponent <Camera_MonoBehaviour>(); this.camera_monobehaviour.Initialize(); }
/** [シングルトン]constructor */ private Blur() { //ルート。 this.root_gameobject = new UnityEngine.GameObject(); this.root_gameobject.name = "Blur"; UnityEngine.Transform t_root_transform = this.root_gameobject.GetComponent <UnityEngine.Transform>(); UnityEngine.GameObject.DontDestroyOnLoad(this.root_gameobject); { //カメラ。 this.camera_gameobject = Fee.Instantiate.Instantiate.CreateOrthographicCameraObject("Camera", t_root_transform, Config.DEFAULT_CAMERA_DEPTH); //OnRenderImage this.camera_monobehaviour = this.camera_gameobject.AddComponent <Camera_MonoBehaviour>(); this.camera_monobehaviour.Initialize(); //無効。 this.flag = false; this.camera_gameobject.SetActive(this.flag); } }