示例#1
0
    private void SpawnNextAndKillBlock(Collision2D collision)
    {
        mySpawner_Ref.RemoveGroup();
        if (!gameStateMachine_Ref.GameOver)
        {
            if (!gameStateMachine_Ref.Collected(amIPlayerOne, (int)collision.gameObject.GetComponent <MyBlockType>().myBlockType))
            {
                mySpawner_Ref.SpawnNext();
            }
        }

        Destroy(collision.gameObject);
    }