Пример #1
0
        public void Initialize(Player player, Player killer, AssistInfection plugin)
        {
            _player         = player;
            _killer         = killer;
            _infectionTimer = Scp049.ReviveEligibilityDuration;
            _plugin         = plugin;

            Coroutine = RunCoroutine(StartCountdown());
        }
Пример #2
0
        public static VictimOf049 SetNewVictim(Player player, Player killer, AssistInfection plugin)
        {
            for (int i = 0; i < Config.DeadPlayerCacheSize; i++)
            {
                var c = CachedClasses[i];

                if (c.Coroutine.IsRunning)
                {
                    continue;
                }

                c.Initialize(player, killer, plugin);
                return(c);
            }

            var createNew = new VictimOf049();

            createNew.Initialize(player, killer, plugin);
            return(createNew);
        }