-
Notifications
You must be signed in to change notification settings - Fork 0
/
Opening.cs
37 lines (31 loc) · 834 Bytes
/
Opening.cs
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
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Opening : MonoBehaviour
{
public GameObject sidescroller;
public GameObject cam;
public GameObject bird;
public GameObject background;
public GameObject pipes;
public GameObject hud;
private void Awake()
{
sidescroller.SetActive(false);
cam.SetActive(false);
bird.SetActive(false);
background.SetActive(false);
pipes.SetActive(false);
hud.SetActive(false);
}
public void EndOpening()
{
sidescroller.SetActive(true);
cam.SetActive(true);
bird.SetActive(true);
background.SetActive(true);
pipes.SetActive(true);
hud.SetActive(true);
Destroy(this.gameObject);
}
}