Ejemplo n.º 1
0
        private void OnFinishPlayerEnterWorldForAny()
        {
            CustomLoadHooks.TriggerHook(RewardsPlayer.EnterWorldValidator, RewardsPlayer.MyValidatorKey);

            LoadHooks.AddWorldUnloadOnceHook(() => {
                CustomLoadHooks.ClearHook(RewardsPlayer.EnterWorldValidator, RewardsPlayer.MyValidatorKey);
            });
        }
Ejemplo n.º 2
0
        internal void PostOnEnterWorld()
        {
            CustomLoadHooks.TriggerHook(LicensesPlayer.EnterWorldValidator, LicensesPlayer.MyValidatorKey);

            LoadHooks.AddWorldUnloadOnceHook(() => {
                CustomLoadHooks.ClearHook(LicensesPlayer.EnterWorldValidator, LicensesPlayer.MyValidatorKey);
            });
        }