Example #1
0
 public static T GetA <T>(this Graspable g)
 {
     if (g)
     {
         return(g.GetComponent <T>());
     }
     else
     {
         return(default);
Example #2
0
 public static bool IsA <T>(this Graspable g)
 {
     if (g)
     {
         return(g.GetComponent <T>() != null);
     }
     else
     {
         return(false);
     }
 }