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