private void OnMouseUpAsButton() { if (enable) { Debug.Log("touched:" + this.name); this.Disable(); this.sourceAudio.PlaySE(0); GameObject obj = Instantiate(this.instance); obj.transform.Find("Message").GetComponent <SpriteRenderer>().sprite = this.message; CheckButton.SetResultButtonObj(this.gameObject); if (this.GetSceneFromManager) { //遷移先のステージの名前を取得する if (this.name == "Retry") { this.TransitionScene = GameObject.Find("ResultManager").GetComponent <ResultManger>().GetTransitScene(ResultManger.TransitMode.RETRY); } else if (this.name == "Next") { this.TransitionScene = GameObject.Find("ResultManager").GetComponent <ResultManger>().GetTransitScene(ResultManger.TransitMode.NEXT); } CheckButton.SetStansitionScene(this.TransitionScene); } else { CheckButton.SetStansitionScene(this.TransitionScene); } } else { Debug.LogWarning("Not enable touch"); } }