diff options
author | chai <chaifix@163.com> | 2021-04-25 19:13:28 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-04-25 19:13:28 +0800 |
commit | 783a3c0dcfb80fa016953ff141e6de12e262525e (patch) | |
tree | 6c1873b309ef997b9e61af1eb2649b0c1d07f16b /Assets/ProFlares/DemoScripts/MultiCameraDemo.cs | |
parent | 08b84b4f21e650a1c8694c592442d508abeb39f0 (diff) |
-proflares
Diffstat (limited to 'Assets/ProFlares/DemoScripts/MultiCameraDemo.cs')
-rw-r--r-- | Assets/ProFlares/DemoScripts/MultiCameraDemo.cs | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/Assets/ProFlares/DemoScripts/MultiCameraDemo.cs b/Assets/ProFlares/DemoScripts/MultiCameraDemo.cs deleted file mode 100644 index c21a02e..0000000 --- a/Assets/ProFlares/DemoScripts/MultiCameraDemo.cs +++ /dev/null @@ -1,101 +0,0 @@ -/// ProFlares - v1.08 - Copyright 2014-2015 All rights reserved - ProFlares.com - - -using UnityEngine; -using System.Collections; - -public class MultiCameraDemo : MonoBehaviour { - - public Camera camera1; - public Camera camera2; - public Camera camera3; - public Camera camera4; - - int count; - - public ProFlareBatch batch; - void Start(){ - camera1.enabled = true; - camera2.enabled = false; - camera3.enabled = false; - camera4.enabled = false; - batch.SwitchCamera(camera1); - } - void Update () { - if(Input.GetKeyUp(KeyCode.Space)){ - count++; - if(count == 4) - count = 0; - - if(count == 0){ - - camera1.enabled = true; - camera2.enabled = false; - camera3.enabled = false; - camera4.enabled = false; - - batch.SwitchCamera(camera1); - } - if(count == 1){ - - camera1.enabled = false; - camera2.enabled = true; - camera3.enabled = false; - camera4.enabled = false; - - batch.SwitchCamera(camera2); - } - if(count == 2){ - - camera1.enabled = false; - camera2.enabled = false; - camera3.enabled = true; - camera4.enabled = false; - - batch.SwitchCamera(camera3); - } - if(count == 3){ - - camera1.enabled = false; - camera2.enabled = false; - camera3.enabled = false; - camera4.enabled = true; - - batch.SwitchCamera(camera4); - } - } - } - - - public Texture2D Logo; - - public Texture2D Info; - - void OnGUI(){ - - GUI.color = Color.white; - - GUIStyle LogoStyle = new GUIStyle(); - LogoStyle.active.background = Logo; - - LogoStyle.normal.background = Logo; - LogoStyle.richText = true; - LogoStyle.alignment = TextAnchor.MiddleCenter; - LogoStyle.normal.textColor = Color.white; - - if(GUI.Button(new Rect(10,0,Logo.width,Logo.height),"",LogoStyle)){ - Application.OpenURL("http://proflares.com/store"); - } - - GUIStyle styleInfo = new GUIStyle(); - styleInfo.active.background = Info; - styleInfo.normal.background = Info; - styleInfo.richText = true; - styleInfo.alignment = TextAnchor.MiddleCenter; - styleInfo.normal.textColor = Color.white; - - if(GUI.Button(new Rect((camera1.pixelRect.width*0.5f)-(Info.width*0.5f),camera1.pixelRect.height-Info.height,Info.width,Info.height),"",styleInfo)){ - //Application.OpenURL("http://proflares.com/store"); - } - } -} |