void Start() { // コンポ―ネントの取得 rigidbody = GetComponent <Rigidbody2D>(); sm = GameObject.Find("ScoreManager").GetComponent <ScoreManager>(); }