private void ShowHide(FSCamera camera) { bool show = !hideIn.Contains(camera); foreach (GameObject objectToHide in objects) { if (objectToHide != null) { objectToHide.SetActive(show); } } if (taggedObjects != null && taggedObjects.Length > 0) { foreach (GameObject objectToHide in taggedObjects) { if (objectToHide != null) { objectToHide.SetActive(show); } } } }
void HandleCameraChanged(FSCamera camera) { ShowHide(camera); }