Projekt

Obecné

Profil

Stáhnout (922 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using System.Collections;
2
using System.Collections.Generic;
3
using UnityEngine;
4

    
5
public class SceneManager : MonoBehaviour
6
{
7
    [SerializeField]
8
    public string mapSourceDirectory;
9

    
10
    public GameObject weatherPanel;
11
    public GameObject datePanel;
12
    public GameObject buildingPanel;
13
    public GameObject animationPanel;
14

    
15
    public bool first;
16

    
17
    // Start is called before the first frame update
18
    void Start()
19
    {
20
        first = true;
21
        weatherPanel.SetActive(true);
22
        datePanel.SetActive(true);
23
        buildingPanel.SetActive(true);
24
        animationPanel.SetActive(true);
25
    }
26

    
27
    // Update is called once per frame
28
    void Update()
29
    {
30
        if (first)
31
        {
32
            weatherPanel.SetActive(false);
33
            datePanel.SetActive(false);
34
            buildingPanel.SetActive(false);
35
            animationPanel.SetActive(false);
36
            first = false;
37
        }
38
    }
39
}
(4-4/10)