using UnityEngine; namespace TapTap.Login.Internal { internal static class UIOperation { // ReSharper disable Unity.PerformanceAnalysis public static T GetComponent(GameObject obj) where T : Component { T component = obj.GetComponent(); if (component == null) { component = obj.AddComponent(); } return component; } } }