Beispiel #1
0
        void ShowGetGold(int gold, Vector3 pos)
        {
            GoldEffectLabelData getGold = new GoldEffectLabelData();

            getGold.GameObj    = Initobj(m_GetGoldLabelObj);
            getGold.bScaleAnim = false;
            getGold.Init();
            //  getGold.ResetScale();
            getGold.LifeTime = 0.5f;
            getGold.SetPos(pos);
            getGold.SetTweenPos();
            getGold.SetText(gold.ToString());
            m_GetGoldList.Add(getGold);
        }
Beispiel #2
0
        void ShowGoldNumLabel(uint _Score, Vector3 Pos, Fish fish, bool bScale = true)
        {
            GoldEffectLabelData label = new GoldEffectLabelData();

            label.GameObj    = Initobj(m_LabelObj);
            label.bScaleAnim = bScale;
            label.Init();
            if (!bScale)
            {
                label.ResetScale();
                label.LifeTime = 2.0f;
            }
            label.SetPos(Pos);
            label.SetText(_Score.ToString());
            if (fish.IsBossFish())
            {
                label.LifeTime = 3.0f;
                label.SetLabelFontSize();
            }
            m_CatchedLabelList.Add(label);
        }