Example #1
0
 void OnCollisionStay2D(Collision2D other)
 {
     if (other.gameObject.tag == "Blob")
     {
         BlobData bd = other.gameObject.GetComponent <BlobData>();
         bd.AddSize();
         SetSize(size - feeding_rate * Time.deltaTime);
     }
 }