public static T GetOrAddComponent <T>(this UnityObject uo) where T : Component { return(uo.GetComponent <T>() ?? uo.AddComponent <T>()); }