コード例 #1
0
ファイル: QuestResult.cs プロジェクト: mliuzailin/GitGame
    private void OnGotLevelUp()
    {
        if (m_levelUpEffect == null)
        {
            m_levelUpEffect = LevelUpEffect.Attach(m_levelUpRoot);
        }

        m_levelUpEffect.Show();
    }
コード例 #2
0
    private Coroutine _coroutine; //携程对象

    // Use this for initialization
    void Start()
    {
        //测试代码
        //MyKeys.Gold_Value = 10000;
        //MyKeys.HeroOne_Level_Value = 0;
        _instance                = this;
        _levelupList             = new List <RectTransform>();
        _rankupList              = new List <RectTransform>();
        _tempList                = new List <RectTransform>();
        _rankup_Normal_Positions = new List <Vector2>();
        _rankup_Positions        = new[] { 38, -30, -100, -176, -247 };

        foreach (Transform child in transform.GetChild(0))
        {
            _levelupList.Add(child.GetComponent <RectTransform>());
        }
        foreach (Transform child in transform.GetChild(1))
        {
            _rankupList.Add(child.GetComponent <RectTransform>());
            _rankup_Normal_Positions.Add(child.GetComponent <RectTransform>().anchoredPosition);
        }
    }