void Start() { //リジットボディの読み込み _rb2d = transform.GetComponent <Rigidbody2D>(); //アニメーターの読み込み animator = GetComponent <Animator>(); itemWindow = FindObjectOfType <ItemWindow>(); itemWindow.AddEventUseItem(UseItem); }