static int GetHandle(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.Playables.Playable obj = (UnityEngine.Playables.Playable)ToLua.CheckObject(L, 1, typeof(UnityEngine.Playables.Playable)); UnityEngine.Playables.PlayableHandle o = obj.GetHandle(); ToLua.PushValue(L, o); ToLua.SetBack(L, 1, obj); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static void PushNotification <U>(this U output, Playable origin, INotification notification, object context = null) where U : struct, IPlayableOutput { output.GetHandle().PushNotification(origin.GetHandle(), notification, context); }