namespace
parent
16df45eea3
commit
57cb33cca7
|
@ -1,7 +1,7 @@
|
|||
using UnityEngine;
|
||||
|
||||
public static class ExtentionMethods
|
||||
namespace UnityEngine.UI.Extensions
|
||||
{
|
||||
public static class ExtentionMethods
|
||||
{
|
||||
public static T GetOrAddComponent<T>(this GameObject child) where T : Component
|
||||
{
|
||||
T result = child.GetComponent<T>();
|
||||
|
@ -11,4 +11,5 @@ public static class ExtentionMethods
|
|||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue