Ejemplo n.º 1
0
 public static void SetTagID(this GameObject obj, Tag.ID id)
 {
     if (obj.GetComponent <Tag>() != null)
     {
         obj.GetComponent <Tag>().iD = id;
     }
 }
Ejemplo n.º 2
0
 public static GameObject TaggedOBJ(this GameObject obj, Tag.ID id)
 {
     if (obj.GetComponent <Tag>().iD == id)
     {
         return(obj);
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 3
0
 public static bool HasID(this GameObject obj, Tag.ID id)
 {
     return(id.Equals(obj.GetComponent <Tag>().iD));
 }