예제 #1
0
    public void Destroy()
    {
        VirusObject.IsDestroyed = true;
        _boardBehaviour.UpdateVirusQuantity(keyColor);
        bool isLastVirus = _boardBehaviour.CheckVirusQuantity(keyColor);

        if (isLastVirus)
        {
            BigVirusBehaviour.Destroy();
        }
        Destroy(transform.gameObject);
    }