private void OnTriggerEnter(Collider other) { switch (other.tag) { case "baloon": StartCoroutine("StartFloat"); break; case "bird": SlowDown(); break; case "coin": print(other.tag); break; case "feedBag": print(other.tag); break; case "scrap": contr.AddScrap(); break; case "mine": rb.AddForce(new Vector3(Mathf.Cos(Mathf.Deg2Rad * 45), Mathf.Sin(Mathf.Deg2Rad * 45), 0) * MinePower, ForceMode.VelocityChange); contr.Damage(); break; case "specialFeedBag": print(other.tag); break; } }