예제 #1
0
 static void PostfixUpdate(Pathea.ActorNs.Actor __instance)
 {
     if (AnimHelper.IsPlayer(__instance))
     {
         AnimHelper.playerAnimator.speed = AnimHelper.currentPCSpeed;
     }
     // set npc speeds
     else
     {
         AnimHelper.setNPCSpeed(__instance);
     }
 }
예제 #2
0
        static void PostfixSetBool(Pathea.ActorNs.Actor __instance, string str, bool val)
        {
            if (!AnimHelper.IsPlayer(__instance))
            {
                return;
            }

            // Main.dump("Pathea.ActorNs.Actor::SetBool "+__instance.name+" " + str);

            if (!val)
            {
                AnimHelper.clearPlayerAnimSpeed();
                // release player from lingering anims.
                Pathea.MessageSystem.MessageManager.Instance.Dispatch("InteractAnimEnd");
                return;
            }

            AnimHelper.SetPlayerAnimSpeed(AnimHelper.GetSpeedForAnimName(str));
        }