Galaxy Generator

This commit is contained in:
mkadou
2023-06-05 15:34:37 +02:00
parent ec4cda81e9
commit 3db8cc2930
195 changed files with 47018 additions and 0 deletions

20
Assets/BackButton.cs Normal file
View File

@@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BackButton : MonoBehaviour
{
public GameObject[] objectsToDeactivate;
public GameObject[] objectsToActivate;
public void GoBack()
{
for (int i = 0; i < objectsToActivate.Length; i++)
{
objectsToActivate[i].SetActive(true); // activate the game object
}
for (int i = 0; i < objectsToDeactivate.Length; i++)
{
objectsToDeactivate[i].SetActive(false); // deactivate the game object
}
}
}