Пример #1
0
    public void HumanAttack()
    {
        needToTalk = true;
        typeTalk   = CombatTalk.HumanAttack;

        /*
         * if (iteration == 2)
         * {
         *  if (nbAttack == 0)
         *  {
         *      customTalk.NewTalkScripted(ScriptText, 17, 17);
         *  }
         *  else if (nbAttack == 2)
         *  {
         *      customTalk.NewTalkScripted(ScriptText, 23, 23);
         *  }
         *  else if (nbAttack == 3)
         *  {
         *      customTalk.NewTalkScripted(ScriptText, 24, 24);
         *  }
         *
         *  nbAttack++;
         * }
         */
    }
Пример #2
0
    public void EnterCombat()
    {
        needToTalk = true;
        typeTalk   = CombatTalk.EnterCombat;

        currentTurn = null;
        index       = 0;
        roundIt     = 0;

        if (iteration == 0)
        {
            customTalk.NewTalkScripted(ScriptText, 2, 2);
        }
        if (iteration == 1)
        {
            customTalk.NewTalkScripted(ScriptText, 15, 15);
        }
        else
        {
        }

        iteration++;

        GameObject g = GameObject.FindGameObjectWithTag("CombatManager");

        if (g != null && g.GetComponent <CombatManager>().talkManager != null)
        {
            TalkManager sm = g.GetComponent <CombatManager>().talkManager;
            monsters      = sm.customTalk;
            combatManager = g.GetComponent <CombatManager>();
        }
    }
Пример #3
0
    public void MonsterFailFear()
    {
        secondNeedToTalk = true;
        secondTypeTalk   = CombatTalk.MonsterFailFear;

        /*
         * monsters.NewTalkScripted(ScriptText, 22,22);
         */
    }
Пример #4
0
    public void EndCombat()
    {
        needToTalk = true;
        typeTalk   = CombatTalk.EndCombat;

        /*
         * if (iteration == 1)
         *  customTalk.NewTalkScripted(ScriptText, 12, 12);
         * if (iteration == 2)
         *  customTalk.NewTalkScripted(ScriptText, 26, 26);
         */
    }
Пример #5
0
    public void Talk()
    {
        needToTalk = true;
        typeTalk   = CombatTalk.Talk;

        /*
         * if (iteration == 1)
         * {
         *
         *  if(roundIt == 0)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 4, 4);
         *  }
         *  else if (roundIt == 1)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 5, 5);
         *  }
         *  else if (roundIt == 2)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 6, 6);
         *  }
         *  else if (roundIt == 3)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 7, 7);
         *  }
         *  else if (roundIt == 4)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 8, 8);
         *  }
         *
         *  roundIt++;
         * }
         * if (iteration == 2)
         * {
         *  if (roundIt == 0)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 18, 18);
         *  }
         *  else if (roundIt == 1)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 19, 19);
         *  }
         *  else if (roundIt == 2)
         *  {
         *      monsters.NewTalkScripted(ScriptText, 21, 21);
         *  }
         *
         *  roundIt++;
         * }
         */
    }