Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SingleContent.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using UnityEngine;
3
4public class SingleContent : MonoBehaviour
5{
6 public List<GameObject> exclude;
7
8 public void Select(GameObject go)
9 {
10 if (exclude.Contains(go))
11 {
12 return;
13 }
14 foreach (Transform componentsInDirectChild in this.GetComponentsInDirectChildren<Transform>())
15 {
16 if (!exclude.Contains(componentsInDirectChild.gameObject) && !componentsInDirectChild.gameObject.tag.Contains("PivotTooltip") && componentsInDirectChild.gameObject != go)
17 {
18 componentsInDirectChild.gameObject.SetActive(value: false);
19 }
20 }
21 }
22}
void Select(GameObject go)
Definition: SingleContent.cs:8
List< GameObject > exclude
Definition: SingleContent.cs:6