Added Scene-scene as empty base scene and toggle function to Change Session-Button
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class ActiveToggle : MonoBehaviour
|
||||
{
|
||||
public GameObject gameObject;
|
||||
|
||||
public void ToggleActive()
|
||||
{
|
||||
gameObject.SetActive(!gameObject.activeSelf);
|
||||
}
|
||||
|
||||
public void ToggleActive(GameObject obj)
|
||||
{
|
||||
obj.SetActive(!obj.activeSelf);
|
||||
Debug.Log(obj.ToString() + "Set Active: " + obj.activeSelf);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user