namespace

pull/413/head
i1 2018-10-04 00:25:09 +03:00
parent 16df45eea3
commit 57cb33cca7
1 changed files with 9 additions and 8 deletions

View File

@ -1,7 +1,7 @@
using UnityEngine; namespace UnityEngine.UI.Extensions
public static class ExtentionMethods
{ {
public static class ExtentionMethods
{
public static T GetOrAddComponent<T>(this GameObject child) where T : Component public static T GetOrAddComponent<T>(this GameObject child) where T : Component
{ {
T result = child.GetComponent<T>(); T result = child.GetComponent<T>();
@ -11,4 +11,5 @@ public static class ExtentionMethods
} }
return result; return result;
} }
}
} }