Beispiel #1
0
    void CreatEffect()
    {
        breakableBlocks--;
        GameObject createdEffect = Instantiate(effect, gameObject.transform.position, Quaternion.identity) as GameObject;

        createdEffect.GetComponent <ParticleSystem>().startColor = gameObject.GetComponent <SpriteRenderer>().color;  //kod bloğu eski obsolete
        Destroy(gameObject);
        sahneYoneticisi.BlocklarinYokOlmasi();
    }