terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ FindInParents< T >()

static T TransformExtensions.FindInParents< T > ( this Transform transform)
inlinestatic
Type Constraints
T :Component 

Definition at line 88 of file TransformExtensions.cs.

88 : Component
89 {
90 Transform parent;
91 GameObject gameObject;
92 for (;;)
93 {
94 if (!true)
95 {
96 }
98 parent = transform2.parent;
99 long num = 0L;
100 bool flag;
101 if (!flag)
102 {
103 }
104 if (num == 0L)
105 {
106 break;
107 }
108 if (gameObject == null)
109 {
110 return;
111 }
112 if (gameObject == null)
113 {
114 goto Block_2;
115 }
116 }
117 gameObject = parent.gameObject;
118 Transform parent2 = parent.parent;
119 throw new MissingMethodException();
120 Block_2:
121 throw new InvalidCastException();
122 }
class f__AnonymousType0<< Count > j__TPar
GameObject gameObject
Definition Component.cs:31

References UnityEngine.Component.gameObject, j__TPar, System.L, and UnityEngine.Transform.parent.