示例#1
0
        protected void addToJumpFontList(string text, string prefabName)
        {
            JumpFontData tempData = new JumpFontData();

            tempData.text        = text;
            tempData.prefabNamne = prefabName;
            jumpList.Add(tempData);
        }
示例#2
0
        protected JumpFontData?AddToJumpFontList(string text, string prefab, Color col)
        {
            JumpFontData tempData = new JumpFontData();

            tempData.Text   = text;
            tempData.Prefab = prefab;
            tempData.Color  = col;
            jumpList.Add(tempData);
            return(tempData);
        }
示例#3
0
        private void jumpFont(JumpFontData data)
        {
            GameObject tempGO = SelfBaseGlobal.GRMgr.GetUI(data.prefabNamne);

            if (tempGO != null)
            {
                var temp = HUDView.Jump(data.text, tempGO, SelfBaseUnit);
                temp.SetFollowObj(GetNode(temp.NodeType));
            }
        }
示例#4
0
        private void JumpFont(JumpFontData data)
        {
            GameObject tempGO = BaseGlobal.GRMgr.UI.Get(data.Prefab);

            if (tempGO != null)
            {
                var temp = JumpHUDView.JumpText(tempGO, SelfBaseUnit, data.Text);
                temp.Color       = data.Color;
                temp.InputOffset = JumpOffset;
                temp.SetFollowObj(GetNode(temp.NodeType));
            }
        }