Beispiel #1
0
    public void StartUpgradeTutorial(bool fromCreationScene)
    {
        if (BalconySceneManager.GetInstance == null)
        {
            return;
        }

        List <DialogueIndexReaction> callBacks = new List <DialogueIndexReaction>();



        if (DialogueManager.GetInstance != null)
        {
            ConversationInformationData tmp = DialogueManager.GetInstance.dialogueStorage.ObtainConversationByTitle("Prologue - Upgrades");

            if (fromCreationScene)
            {
                Debug.Log("Starting Upgrade Tutorial");
                DialogueIndexReaction temp1 = new DialogueIndexReaction();
                temp1.dialogueIndex     = 8;
                temp1.potentialCallback = () => ShowEnemyInvasionTut();

                DialogueIndexReaction temp2 = new DialogueIndexReaction();
                temp2.dialogueIndex     = 10;
                temp2.potentialCallback = () => ShowBarracksInvasionTut();

                callBacks.Add(temp1);
                callBacks.Add(temp2);
            }
            else
            {
                DialogueIndexReaction temp1 = new DialogueIndexReaction();
                temp1.dialogueIndex     = 7;
                temp1.potentialCallback = () => SkipInvasionDialogue();

                DialogueIndexReaction temp2 = new DialogueIndexReaction();
                temp2.dialogueIndex     = 10;
                temp2.potentialCallback = () => ShowBarracksInvasionTut();

                callBacks.Add(temp1);
                callBacks.Add(temp2);
                // Optional : You might be able to use this part in case you want to 're-run' the tutorial
                // post-creation
            }
            DialogueManager.GetInstance.StartConversation(tmp, HideUpgradesTutorial, callBacks);
        }
    }
Beispiel #2
0
        public void StartOverheadTutorial(bool fromCreationScene = false)
        {
            List <DialogueIndexReaction> callBacks = new List <DialogueIndexReaction>();

            DialogueIndexReaction temp1 = new DialogueIndexReaction();

            temp1.dialogueIndex     = 0;
            temp1.potentialCallback = () => overheadTutorialController.ShowFoodTutorial();

            DialogueIndexReaction temp2 = new DialogueIndexReaction();

            temp2.dialogueIndex     = 3;
            temp2.potentialCallback = () => overheadTutorialController.ShowTroopTutorial();

            DialogueIndexReaction temp3 = new DialogueIndexReaction();

            temp3.dialogueIndex     = 4;
            temp3.potentialCallback = () => overheadTutorialController.ShowCoinTutorial();

            DialogueIndexReaction temp4 = new DialogueIndexReaction();

            temp4.dialogueIndex     = 2;
            temp4.potentialCallback = () => overheadTutorialController.ShowPopulationTutorial();

            callBacks.Add(temp1);
            callBacks.Add(temp2);
            callBacks.Add(temp3);
            callBacks.Add(temp4);

            if (DialogueManager.GetInstance != null)
            {
                ConversationInformationData tmp = DialogueManager.GetInstance.dialogueStorage.ObtainConversationByTitle("Introduce The Resources");

                if (fromCreationScene)
                {
                }
                else
                {
                }
                ShowResourcePanel(ResourcePanelType.overhead, () => DialogueManager.GetInstance.StartConversation(tmp, PrologueScene, callBacks));
            }
        }
Beispiel #3
0
    public void StartBalconyTutorial(bool fromCreationScene)
    {
        List <DialogueIndexReaction> callBacks = new List <DialogueIndexReaction>();

        DialogueIndexReaction temp0 = new DialogueIndexReaction();

        temp0.dialogueIndex     = 1;
        temp0.potentialCallback = () => DialogueManager.GetInstance.MovePanelUp();

        DialogueIndexReaction temp1 = new DialogueIndexReaction();

        temp1.dialogueIndex     = 2;
        temp1.potentialCallback = () => ShowBarracksTutorial();

        DialogueIndexReaction temp2 = new DialogueIndexReaction();

        temp2.dialogueIndex     = 5;
        temp2.potentialCallback = () => ShowFarmTutorial();

        DialogueIndexReaction temp3 = new DialogueIndexReaction();

        temp3.dialogueIndex     = 9;
        temp3.potentialCallback = () => ShowTavernTutorial();
        temp3.moveDialogueUp    = true;

        DialogueIndexReaction temp4 = new DialogueIndexReaction();

        temp4.dialogueIndex     = 13;
        temp4.potentialCallback = () => ShowShopTutorial();

        DialogueIndexReaction temp5 = new DialogueIndexReaction();

        temp5.dialogueIndex     = 17;
        temp5.potentialCallback = () => ShowBlacksmithTutorial();

        DialogueIndexReaction temp6 = new DialogueIndexReaction();

        temp6.dialogueIndex     = 20;
        temp6.potentialCallback = () => ShowTravelTutorial();
        temp6.moveDialogueDown  = true;

        DialogueIndexReaction temp7 = new DialogueIndexReaction();

        temp7.dialogueIndex     = 23;
        temp7.potentialCallback = () => ShowHousingTutorial();

        DialogueIndexReaction temp8 = new DialogueIndexReaction();

        temp8.dialogueIndex     = 27;
        temp8.potentialCallback = () => ShowMarketTutorial();
        temp8.moveDialogueUp    = true;


        callBacks.Add(temp0);
        callBacks.Add(temp1);
        callBacks.Add(temp2);
        callBacks.Add(temp3);
        callBacks.Add(temp4);
        callBacks.Add(temp5);
        callBacks.Add(temp6);
        callBacks.Add(temp7);
        callBacks.Add(temp8);

        if (TransitionManager.GetInstance != null)
        {
            TransitionManager.GetInstance.HideTabCover();
        }

        if (DialogueManager.GetInstance != null)
        {
            if (fromCreationScene)
            {
                // Summon Monster
                BalconySceneManager.GetInstance.travelSystem.SummonRandomTraveller(TravelLocation.ForestOfRetsnom, TravellerType.Invader, 20); // 20
                prologueBandit = BalconySceneManager.GetInstance.travelSystem.spawnedUnits[BalconySceneManager.GetInstance.travelSystem.spawnedUnits.Count - 1];
                prologueBandit.clickDetector.isClickable = false;
            }
            else
            {
                // Optional : You might be able to use this part in case you want to 're-run' the tutorial
                // post-creation
            }

            ConversationInformationData tmp = DialogueManager.GetInstance.dialogueStorage.ObtainConversationByTitle("Introduce the buildings");
            Debug.Log("[STARTING CONVERSATION] Introduce the buildings");
            DialogueManager.GetInstance.StartConversation(tmp, HideAllTutorial, callBacks);
        }
    }
Beispiel #4
0
    public void StartBattlefieldTutorial(bool fromCreationScene)
    {
        List <DialogueIndexReaction> callBacks = new List <DialogueIndexReaction>();

        DialogueIndexReaction temp0 = new DialogueIndexReaction();

        temp0.dialogueIndex     = 1;
        temp0.potentialCallback = () => DialogueManager.GetInstance.MovePanelUp();

        DialogueIndexReaction temp1 = new DialogueIndexReaction();

        temp1.dialogueIndex     = 4;
        temp1.potentialCallback = () => DialogueManager.GetInstance.MovePanelDown();

        DialogueIndexReaction temp2 = new DialogueIndexReaction();

        temp2.dialogueIndex     = 5;
        temp2.potentialCallback = () => ShowVictorySliderTutorial();

        DialogueIndexReaction temp3 = new DialogueIndexReaction();

        temp3.dialogueIndex     = 8;
        temp3.potentialCallback = () => ShowWarChestTutorial();

        DialogueIndexReaction temp4 = new DialogueIndexReaction();

        temp4.dialogueIndex     = 11;
        temp4.potentialCallback = () => DialogueManager.GetInstance.MovePanelUp();

        DialogueIndexReaction temp5 = new DialogueIndexReaction();

        temp5.dialogueIndex     = 12;
        temp5.potentialCallback = () => ShowSkillsTutorial();

        DialogueIndexReaction temp6 = new DialogueIndexReaction();

        temp6.dialogueIndex     = 14;
        temp6.potentialCallback = () => DialogueManager.GetInstance.MovePanelDown();

        DialogueIndexReaction temp7 = new DialogueIndexReaction();

        temp7.dialogueIndex     = 15;
        temp7.potentialCallback = () => ShowSummonSpawnTutorial();


        callBacks.Add(temp0); callBacks.Add(temp1); callBacks.Add(temp2); callBacks.Add(temp3);
        callBacks.Add(temp4); callBacks.Add(temp5); callBacks.Add(temp6); callBacks.Add(temp7);


        if (TransitionManager.GetInstance != null)
        {
            TransitionManager.GetInstance.HideTabCover();
        }

        if (DialogueManager.GetInstance != null)
        {
            if (fromCreationScene)
            {
                // Pause Everything First.
            }
            else
            {
                // Optional : You might be able to use this part in case you want to 're-run' the tutorial
                // post-creation
            }

            ConversationInformationData tmp = DialogueManager.GetInstance.dialogueStorage.ObtainConversationByTitle("Remember the Battlefield");
            Debug.Log("[STARTING CONVERSATION] Remembering the Battlefield");
            DialogueManager.GetInstance.StartConversation(tmp, HideAllTutorial, callBacks);
        }
    }