// Use this for initialization IEnumerator Start() { spaceship = GetComponent<Spaceship> (); common = GetComponent<EnemyCommon>(); enemy = GetComponent<Enemy>(); common.Init(); //SE関係 audioSource = gameObject.GetComponent<AudioSource>(); audioSource.clip = skillSE; s2 = common.CreateShotPosition(); pt = FindObjectOfType<Party>().transform; common.ShowWindowMessage("剣士「追手か!」"); yield return new WaitForSeconds(2.0f); common.ShowWindowMessage("剣士「メデュ様を連れて行かせるわけにはいかない!」"); //yield return new WaitForSeconds(3.0f); yield return new WaitForEndOfFrame(); StartCoroutine("Stop"); yield return new WaitForSeconds(3.0f); StartCoroutine("Attack1"); yield break; }