// 引っ付いたときの処理 public override void HandleAttached(StarController star, GameObject from) { if (from == connectionA) { if (star.prevJoint != connectionA && star.prevJoint != connectionB) { star.AttachToJoint(connectionB); GetComponent <AudioSource>().Play(); } } }