Galaxy Generator
This commit is contained in:
25
Assets/SolarSystemUI.cs
Normal file
25
Assets/SolarSystemUI.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class SolarSystemUI : MonoBehaviour
|
||||
{
|
||||
|
||||
public GameObject[] objectsToDeactivate;
|
||||
public GameObject[] objectsToActivate;
|
||||
|
||||
public void setActive()
|
||||
{
|
||||
for (int i = 0; i < objectsToActivate.Length; i++)
|
||||
{
|
||||
objectsToActivate[i].SetActive(true); // activate the game object
|
||||
}
|
||||
}
|
||||
public void setDeactive()
|
||||
{
|
||||
for (int i = 0; i < objectsToDeactivate.Length; i++)
|
||||
{
|
||||
objectsToDeactivate[i].SetActive(false); // deactivate the game object
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user