Skip to content

Commit 43af2d2

Browse files
authored
Create Screens
1 parent dadb1f0 commit 43af2d2

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Diff for: Screens

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
public class Screens : MonoBehaviour
6+
{
7+
public GameObject Canvas_Insert, Canvas_Search, Canvas_Update, Canvas_Delete;
8+
// Start is called before the first frame update
9+
void Start()
10+
{
11+
Canvas_Insert.SetActive(true);
12+
Canvas_Delete.SetActive(false);
13+
Canvas_Search.SetActive(false);
14+
Canvas_Update.SetActive(false);
15+
16+
}
17+
public void insert()
18+
{
19+
Canvas_Insert.SetActive(true);
20+
Canvas_Delete.SetActive(false);
21+
Canvas_Search.SetActive(false);
22+
Canvas_Update.SetActive(false);
23+
}
24+
public void Delete()
25+
{
26+
Canvas_Insert.SetActive(false);
27+
Canvas_Delete.SetActive(true);
28+
Canvas_Search.SetActive(false);
29+
Canvas_Update.SetActive(false);
30+
}
31+
public void Search()
32+
{
33+
Canvas_Insert.SetActive(false);
34+
Canvas_Delete.SetActive(false);
35+
Canvas_Search.SetActive(true);
36+
Canvas_Update.SetActive(false);
37+
}
38+
39+
public void Updates()
40+
{
41+
Canvas_Insert.SetActive(false);
42+
Canvas_Delete.SetActive(false);
43+
Canvas_Search.SetActive(false);
44+
Canvas_Update.SetActive(true);
45+
}
46+
// Update is called once per frame
47+
void Update()
48+
{
49+
50+
}
51+
}

0 commit comments

Comments
 (0)