Пример #1
0
        private void DestroyPlayer(IPlayer player)
        {
            var civToDestroy = player.ControlledCiv;

            PlayerFactory.DestroyPlayer(player);
            civToDestroy.Destroy();
        }
Пример #2
0
        public void ClearRuntime()
        {
            GameCore.ActivePlayer = null;

            foreach (var player in PlayerFactory.AllPlayers.ToArray())
            {
                PlayerFactory.DestroyPlayer(player);
            }
        }