Esempio n. 1
0
        public void Tick()
        {
            tickCurrent += 6000;
            if (tickCurrent < tickLimit)
            {
                return;
            }

            if (CaptureStatus == FlagCaptureStatus.Capturing)
            {
                CaptureStatus = FlagCaptureStatus.Captured;
            }
            else if (CaptureStatus == FlagCaptureStatus.Captured)
            {
                messageQueue.EnqueueMessage(new MessageAddScore
                {
                    Faction = OwnerTeamFaction
                });
            }

            tickCurrent = 0;
        }
Esempio n. 2
0
 public void StartCapture(TeamFaction faction)
 {
     CaptureStatus    = Flag.FlagCaptureStatus.Capturing;
     OwnerTeamFaction = faction;
 }