123456789101112131415161718192021222324 |
- using System;
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public static class ExAction
- {
- public static void SafeInvoke(this Action action)
- {
- if (action != null)
- {
- action.Invoke();
- }
- }
- public static void SafeInvoke(this Action<double> action, double arg)
- {
- if (action != null)
- {
- action.Invoke(arg);
- }
- }
- }
|