Exemple #1
0
 private IEnumerator IOnBattleEnd()
 {
     isBattle = false;
     playerTrigger.OnPlayerStarshipEnter += EndDialog;
     ExitDoor.Move();
     Z2StarshipAI.SetTargetAndDestinationToShowPath(PlayerStarshipTr, Destination);
     yield return(GameDialogs.IShowInGameDialogEvent(0));
 }
Exemple #2
0
    private IEnumerator IWait2()
    {
        yield return(new WaitForSeconds(waitTime2));

        isWaited2 = true;
        yield return(GameDialogs.IShowInGameDialogEvent(4));

        Wait = IWait3();
        StartCoroutine(Wait);
    }
Exemple #3
0
    private IEnumerator IOnOneTeamLeft()
    {
        isBattle = false;
        Border.SetActive(false);
        Z2StarshipAI.SetTargetAndDestinationToShowPath(PlayerStarshipTr, Destination);
        yield return(GameDialogs.IShowInGameDialogEvent(0));

        Wait = IWait1();
        StartCoroutine(Wait);
    }
Exemple #4
0
    private IEnumerator IWaited()
    {
        isWaited = true;
        yield return(GameDialogs.IShowInGameDialogEvent(5));

        isWaitedSayed = true;
        if (isWaitingToAnswer)
        {
            GameDialogs.ShowInGameDialogEvent(1);
        }
    }
Exemple #5
0
    private IEnumerator IRush()
    {
        if (!isDisqualified)
        {
            yield return(GameDialogs.IShowInGameDialogEvent(2));

            isShowedDialog2 = true;
        }
        systemStarships.SetStarshipsActive(2, true);
        systemStarships.SetStarshipsActive(3, true);
        systemStarships.CombineTeams(3, 0);
    }
Exemple #6
0
    private IEnumerator IDisqualificate()
    {
        isDisqualified = true;
        yield return(GameDialogs.IShowInGameDialogEvent(5));

        int team = systemStarships.StarshipChangeTeamToNew(C07Starship, 0);

        systemStarships.StarshipChangeTeam(PlayerStarship, 0, team);
        C07Health.SetInvincible(false);
        C07Starship.SetFollowTarget(PlayerStarshipTr);
        systemStarships.StarshipsTeams[0].SetFollowTarget(PlayerStarshipTr);
        if (isShowedDialog2)
        {
            GameDialogs.ShowInGameDialogEvent(3);
        }
        else
        {
            GameDialogs.ShowInGameDialogEvent(7);
        }
    }
Exemple #7
0
    private IEnumerator IShowDialog()
    {
        if (Wait != null)
        {
            StopCoroutine(Wait);
        }
        if (!isWaited)
        {
            if (!isWaited1)
            {
                yield return(GameDialogs.IShowInGameDialogEvent(1));

                Wait = IWait1();
            }
            else if (!isWaited2)
            {
                yield return(GameDialogs.IShowInGameDialogEvent(1));

                Wait = IWait2();
            }
            else if (!isWaited3)
            {
                isWaitingToAnswer = true;
                Wait = IWait3();
            }
            StartCoroutine(Wait);
        }
        else
        {
            if (isWaitedSayed)
            {
                GameDialogs.ShowInGameDialogEvent(1);
            }
            else
            {
                isWaitingToAnswer = true;
            }
        }
    }
Exemple #8
0
    private IEnumerator ITimerEnd()
    {
        yield return(GameDialogs.IShowInGameDialogEvent(2));

        GameTimer.DeactivateEvent();
    }