Beispiel #1
0
 public override void OnTriggerEnter2D(Collider2D collider)
 {
     base.OnTriggerEnter2D(collider);
     if (collider.tag == "Ball")
     {
         BallBehavior bb = collider.GetComponent <BallBehavior>();
         bb.StartCoroutine(bb.SizeModBuff(Duration, SizeMod));
         GetComponent <CircleCollider2D>().enabled = false;
         anim.Play(Animation);
         //Destroy(gameObject);
     }
 }