protected void addToJumpFontList(string text, string prefabName) { JumpFontData tempData = new JumpFontData(); tempData.text = text; tempData.prefabNamne = prefabName; jumpList.Add(tempData); }
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); }
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)); } }
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)); } }