Assets.Scripts.Scenes.Game.BossAttackBatchingCommandInterceptor.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        void Update()
        {
            if (Time.time - lastBatchSendTime > BatchSendInterval && postponedAttackValue != 0)
            {
                webSocketService.SendCommand(new BossAttackDTO(postponedAttackValue), false);
                postponedAttackValue = 0;
                lastBatchSendTime = Time.time;
            }
        }