-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeneralWindowData.cs
More file actions
44 lines (38 loc) · 964 Bytes
/
GeneralWindowData.cs
File metadata and controls
44 lines (38 loc) · 964 Bytes
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
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GeneralWindowData {
private string _text;
private Color _backgroundColor;
private string[] _buttonsTexts;
/// <summary>
/// The text that is shown when you click a button.
/// </summary>
private string[] _buttonFunctionTexts;
public GeneralWindowData(string text, Color backgroundColor, string[] buttonsTexts, string[] buttonFunctionTexts)
{
this._text = text;
this._backgroundColor = backgroundColor;
this._buttonsTexts = buttonsTexts;
this._buttonFunctionTexts = buttonFunctionTexts;
}
public string text
{
get { return _text; }
}
public Color BackgroundColor
{
get { return _backgroundColor; }
}
public string[] ButtonsTexts
{
get { return _buttonsTexts; }
}
/// <summary>
/// The text that is shown when you click a button.
/// </summary>
public string[] ButtonFunctionTexts
{
get { return _buttonFunctionTexts; }
}
}