示例#1
0
文件: blocks.cs 项目: EoinNov/ArknN
    public void DestroyBlock()
    {
        AM.PlaySound(sndDestroy);
        lc.BlockDestroyed();
        gamemanager.AddScore(points);

        Destroy(gameObject);

        Instantiate(pickupPrefab, transform.position, Quaternion.identity);
        Instantiate(particleEffectPrefab, transform.position, Quaternion.identity);

        Exsplode();
    }
示例#2
0
    // Start is called before the first frame update

    void ApplyEffect()
    {
        Gamemanager gM = FindObjectOfType <Gamemanager>();

        gM.AddScore(point);
    }