コード例 #1
0
    private void CheckMatch()
    {
        if (currentBug.bugColor == targetColor)
        {
            BugUtils.PaintBugOccur();

            readyToPaint = false;
            LinearMove movementCtrl = currentBug.gameObject.AddComponent <LinearMove>();
            movementCtrl.Init(true, 5);
        }
    }
コード例 #2
0
ファイル: Bug.cs プロジェクト: finalspace/BlackthornGameJam
    private void Dead()
    {
        if (deathEffect != null)
        {
            GameObject effectObj = Instantiate(deathEffect, transform.position, Quaternion.identity);
            UpdateParticleColor(effectObj);
        }

        BugUtils.KillBugOccur();

        Destroy(gameObject);
    }