11 lines
232 B
C#
11 lines
232 B
C#
using UnityEngine;
|
|
|
|
public class ActiveToggle : MonoBehaviour
|
|
{
|
|
public void ToggleActive(GameObject obj)
|
|
{
|
|
obj.SetActive(!obj.activeSelf);
|
|
Debug.Log(obj.ToString() + "Set Active: " + obj.activeSelf);
|
|
}
|
|
}
|