/// <summary> /// 死亡クラス /// </summary> /// <returns></returns> public IEnumerator IsDead() { IsSleep = true; boxCol.enabled = false; eAnime.IsDeadAnim(); this.transform.tag = "Untagged"; yield return(new WaitForSeconds(3)); Destroy(gameObject); }