-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelp.cs
More file actions
38 lines (29 loc) · 709 Bytes
/
Help.cs
File metadata and controls
38 lines (29 loc) · 709 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
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Help : MonoBehaviour {
public Button helpButton;
public Button playButton;
public GameObject currentPicture;
public GameObject nextPicture;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void initHelp() {
helpButton.interactable = false;
playButton.interactable = false;
currentPicture.SetActive (true);
}
public void nextHelp(){
currentPicture.SetActive (false);
nextPicture.SetActive (true);
}
public void endHelp(){
currentPicture.SetActive (false);
helpButton.interactable = true;
playButton.interactable = true;
}
}