ExAction.cs 274 B

12345678910111213141516
  1. using System;
  2. using UnityEngine;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. public static class ExAction
  6. {
  7. public static void SafeInvoke(this Action action)
  8. {
  9. if (action != null)
  10. {
  11. action.Invoke();
  12. }
  13. }
  14. }