示例#1
0
    private void OnDestroy()
    {
        switch (team)
        {
        case 0:
            SpawnSystem.RemoveSpawnPointA(transform);
            break;

        case 1:
            SpawnSystem.RemoveSpawnPointB(transform);
            break;
        }
        SpawnSystem.RemoveSpawnPointA(transform);
    }