using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class title : MonoBehaviour {
// Update is called once per frame
void Update () {
if( Input.GetMouseButtonDown(0) )
{
Vector2 POINT = Camera.main.ScreenToWorldPoint( Input.mousePosition );
Collider2D START = Physics2D.OverlapPoint( POINT );
if( START == true )
{
SceneManager.LoadScene("Main");
}
}
}
}

メニュー画面の開始ボタン用にこのようなスクリプトを作ったのですが
SceneManager.LoadScene("Main")の所を改変して終了ボタン用のスクリプトを作ろうとすると
どっちのボタンをクリックしても終了します
debugなどで色々試した結果どうも開始と終了のboxcolider2dが区別できていないため両方の
スクリプトが実行されているという結論に至りました
これを解消する為にcoliderをそれが組み込まれているオブジェクトの名前やタグで区別する事は出来ないでしょうか