public override void attack() { for (int i = 0; i < BuCount; i++) { float R = (Mathf.PI * 2f / BuCount) * i; Vector3 vect = new Vector3(Mathf.Cos(R), Mathf.Sin(R), 0f); var bullet = Instantiate(Bullet, transform.position, Quaternion.identity).GetComponent <FunBullet>(); bullet.Level = Level; bullet.vect = vect; } Anima.SetTrigger("IsAttack"); attackTime = AttackCD; }