예제 #1
0
        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);
                    }
                }
            }
        }
예제 #2
0
 void HandleCameraChanged(FSCamera camera)
 {
     ShowHide(camera);
 }