예제 #1
0
        private static void OnActorComponentBeginPlay(IntPtr address)
        {
            UObject obj = GCHelper.Find(address);

            ActorComponentBeginPlayDel_ThisCall original = actorComponentBeginPlay.GetOriginal <ActorComponentBeginPlayDel_ThisCall>(obj);

            original(address);
            //Native_VTableHacks.CallOriginal_ActorComponentBeginPlay(original, address);

            obj.BeginPlayInternal();
        }
예제 #2
0
        private static void OnActorComponentBeginPlay(IntPtr address)
        {
            try
            {
                UObject obj = GCHelper.Find(address);

                ActorComponentBeginPlayDel_ThisCall original = actorComponentBeginPlay.GetOriginal <ActorComponentBeginPlayDel_ThisCall>(obj);
                original(address);
                //Native_VTableHacks.CallOriginal_ActorComponentBeginPlay(original, address);

                obj.BeginPlayInternal();
            }
            catch (Exception e)
            {
                LogCallbackException(nameof(OnActorComponentBeginPlay), e);
            }
        }