Example #1
0
        public void EndKillingSprees(int time, bool IsEndGame = false)
        {
            if (!KillingSprees.Any())
            {
                return;
            }

            LastKillingSpree.FinishInSeconds = time;
            LastKillingSpree.IsRunnig        = false;
        }
Example #2
0
        public void AddOrContinueKillingSprees(int time)
        {
            if (!KillingSprees.Any())
            {
                KillingSprees.Add(new KillingSpree {
                    StartInSeconds = time, Count = 1, FinishInSeconds = time, IsRunnig = true
                });
                return;
            }

            if (LastKillingSpree.IsRunnig)
            {
                LastKillingSpree.Count++;
                LastKillingSpree.FinishInSeconds = time;
                return;
            }

            KillingSprees.Add(new KillingSpree {
                StartInSeconds = time, Count = 1, FinishInSeconds = time, IsRunnig = true
            });
        }