blob: ac1367573a8ef890650a30561865b1d2efddccef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/// ProFlares - v1.08 - Copyright 2014-2015 All rights reserved - ProFlares.com
using UnityEngine;
using System.Collections;
public class SplitScreenDemo : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public Camera guiCamera;
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((guiCamera.pixelRect.width*0.5f)-(Info.width*0.5f),guiCamera.pixelRect.height*2-Info.height,Info.width,Info.height),"",styleInfo)){
//Application.OpenURL("http://proflares.com/store");
}
}
}
|