コード例 #1
0
    //Action 3 - Desperation Attack
    private IEnumerator attackDesperation()
    {
        move.SetIsMoving(false);
        eyes.chargeEye(false);
        eyes.chargeMiniEyes();
        ShowDesperationFilter(true);

        yield return(new WaitForSeconds(chargeTime));

        eyes.openEye(true);
        eyes.openMiniEyes(true);

        for (int i = 0; i < desperationAmount; i++)
        {
            Shoot();
            eyes.shootMiniEyes();
            yield return(new WaitForSeconds(desperationFrequency));
        }

        controller.DefaultState();
    }
コード例 #2
0
 private void SetPhase_1()
 {
     move.Speed *= 2;
     eyes.openMiniEyes(true);
 }