Beispiel #1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        Dog dog = other.GetComponent <Dog>();

        if (dog)
        {
            dog.AddWool(duration, costume);
            Destroy(gameObject);
        }
    }