示例#1
0
        protected override void OnDestroy()
        {
            base.OnDestroy();

            playersCount--;
            input.Destroy();
            activeCharacters.Remove(character);

            if (playersCount == 0)
            {
                levelGenerator.Restart(0);
            }
        }