예제 #1
0
파일: Boss_1.cs 프로젝트: MoChen2001/STG
 // 第一个技能
 private IEnumerator Skill_1(float totalTime)
 {
     float time = 0.0f;
     int index_1 = m_Shot.StartEuler(bullet_Big, bullets, baseNumber * 3, 60, -60, 2.0f);
     bool flag = true;
     while (true)
     {
         int index;
         index = m_Shot.StartCycleLinesWithTimeOffsetAndTrace(bullet_Common, bullets, player_Transform.position,
             38 , 10, flag, 100,baseSpeed * 2,0.5f,1.0f);
         yield return new WaitForSeconds(1.6f);
         m_Shot.StopCoroutineWithIndex(index);
         flag = !flag;
         time += 1.5f;
         if (time >= totalTime)
         {
             break;
         }
     }
     m_Shot.StopCoroutineWithIndex(index_1);
 }