Ejemplo n.º 1
0
    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;
        }
    }
Ejemplo n.º 2
0
    // 第二个技能方法
    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;
            }
        }
    }