예제 #1
0
파일: ShipTwo.cs 프로젝트: MoChen2001/STG
    private IEnumerator StartCycleMoveAndShot(float totalTime)
    {
        float time = 0.0f;

        while (time < totalTime)
        {
            int index = m_Shot.StartCycleWithTimeOffsetAndTrace(Bullet_Common, Bullets, playerTrasform.position,
                                                                BaseNumber * 3, BaseSpeed, BaseSpeed * 2, 0.8f, 0.5f);
            yield return(new WaitForSeconds(2.0f));

            m_Shot.StopCoroutineWithIndex(index);
            time += 2.0f;
        }
    }
예제 #2
0
파일: Boss_2.cs 프로젝트: MoChen2001/STG
    // 第二个技能方法
    private IEnumerator StartEulerTraceShot_2(float Totaltime)
    {
        float time = 0.0f;

        while (true)
        {
            int index;
            index = m_Shot.StartCycleWithTimeOffsetAndTrace(bullet_Common, bullets, player_Transform.position,
                                                            baseNumber * 6, baseSpeed, baseSpeed * 2, 0.2f, 1.0f);
            yield return(new WaitForSeconds(2.1f));

            m_Shot.StopCoroutineWithIndex(index);
            time += 2.1f;
            if (time >= Totaltime)
            {
                break;
            }
        }
    }