Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace XRMultiplayer
|
||||
{
|
||||
public class GameObjectToggle : MonoBehaviour
|
||||
{
|
||||
[SerializeField] GameObject[] objectsToToggle;
|
||||
|
||||
public void ToggleObjects()
|
||||
{
|
||||
foreach (var obj in objectsToToggle)
|
||||
{
|
||||
obj.SetActive(!obj.activeSelf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user