示例#1
0
 public void CheckRemainingTimeInRound(NodeAddedEvent evt, SoundsListenerWithOldRoundRestartSoundsNode listener, SelfBattleUserNode battleUser, [JoinByBattle, Context] ActiveRoundStopTimeNode round, SingleNode <BattleSoundsAssetComponent> mapEffect)
 {
     if ((round.roundStopTime.StopTime.UnityTime - Date.Now.UnityTime) >= mapEffect.component.BattleSoundsBehaviour.MinRemainigRoundTimeSec)
     {
         listener.Entity.RemoveComponent <OldRoundRestartSoundsListenerComponent>();
         listener.Entity.AddComponent <MelodiesRoundRestartListenerComponent>();
     }
 }
示例#2
0
 public void CheckRoundTimer(UpdateEvent e, SoundsListenerWithRoundRestartMelodiesNode listener, [JoinAll] SelfBattleUserNode battleUser, [JoinByBattle] ActiveRoundStopTimeNode round, [JoinAll] SingleNode <BattleSoundsAssetComponent> mapEffect)
 {
     if ((round.roundStopTime.StopTime.UnityTime - Date.Now.UnityTime) <= mapEffect.component.BattleSoundsBehaviour.MinRemainigRoundTimeSec)
     {
         Node[] nodes = new Node[] { battleUser, mapEffect, listener, round };
         base.NewEvent <DefineMelodyForRoundRestartEvent>().AttachAll(nodes).Schedule();
         listener.Entity.RemoveComponent <MelodiesRoundRestartListenerComponent>();
     }
 }
 public void CheckRoundTimer(UpdateEvent e, MapAnimatorTimerNode mapAnimatorTimer, [JoinAll] SelfBattleUserNode battleUser, [JoinByBattle] ActiveRoundStopTimeNode round, [JoinAll] SingleNode <AnimatorTimerComponent> animatorTimer)
 {
     if ((round.roundStopTime.StopTime.UnityTime - Date.Now.UnityTime) <= animatorTimer.component.timer)
     {
         animatorTimer.component.animator.SetTrigger(animatorTimer.component.triggerName);
     }
 }