Beispiel #1
0
    public void InitEnnemyTeam()
    {
        m_EnnemyTeam.Clear();
        //m_PlayerTeam.Clear();
        //adding 3 random ennemies from the possible ennemies list
        //this will get called at the start of the combat scene
        int ennemycountrand = (int)UnityEngine.Random.Range(1, 4);

        for (int i = 0; i < ennemycountrand; i++)
        {
            int rand = (int)UnityEngine.Random.Range(0, m_PossibleEnnemyList.Count);
            m_EnnemyTeam.Add(m_PossibleEnnemyList[rand]);
        }
        m_HealthBarController.SetupCombat();
        m_HealthBarController.ResetBarValues();
    }