Beispiel #1
0
    public void NextLevel()
    {
        m_level++;

        var lists = GetLevelList();

        m_data = lists[m_level];

        m_levelsUI.Value = m_level + 1;
    }
Beispiel #2
0
    /***************************************************/
    /***  METHODS               ************************/
    /***************************************************/

    /********  UNITY MESSAGES   ************************/

    // Use this for initialization
    private void Start()
    {
        m_data = GetLevelList()[0];

        m_state           = State.Cooldown;
        m_cooldown        = m_data.m_cooldown;
        m_cooldownInitial = m_data.m_cooldown;

        UpdateBar();

        m_levelsUI.Value          = m_level + 1;
        m_levelsAvailableUI.Value = MaxLevel() + 1;
    }