ColliderExtension.cs 311 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace JTSystems
  5. {
  6. public static class ColliderExtension
  7. {
  8. public static bool HasInterface<T>(this Collider col)
  9. {
  10. return InterfaceUtility.HasInterface<T>(col.gameObject);
  11. }
  12. }
  13. }