static void Main(string[] args) { PlayerObject.Instance.Self.Money = 99999; PlayerObject.Instance.Self.Exp = 99999; Follower f1 = new Follower(); Console.WriteLine(FollowerLogic.GetAttack(f1)); var p = FollowerLevelLogic.UpgradeRequire(f1); if (p != null) { Console.WriteLine(p.Exp); Console.WriteLine(p.Money); } FollowerLevelLogic.Upgrade(f1); Console.WriteLine(FollowerLogic.GetAttack(f1)); var p2 = FollowerLevelLogic.UpgradeRequire(f1); if (p2 != null) { Console.WriteLine(p2.Exp); Console.WriteLine(p2.Money); } FollowerLevelLogic.Upgrade(f1); Console.WriteLine(FollowerLogic.GetAttack(f1)); }
public void RefreshInfo() { if (CurrFollower != null) { CurrAvatar = new CCSprite(@"face/" + CurrFollower.Avatar); this.AddChild(CurrAvatar); CurrDesc.Dimensions = new CCSize(250, 100); CurrDesc.Text = CurrFollower.Desc; CurrName.Text = CurrFollower.Name + "王者"; CurrStar.Text = string.Format("星级 : {0} / {1}", CurrFollower.CurStar, CurrFollower.MaxStar); CurrLevel.Text = string.Format("等级 : {0} / 30", CurrFollower.CurLevel); CurrAttack.Text = string.Format("战斗力 : {0}", FollowerLogic.GetAttack(CurrFollower)); StatusChangeButton.Text = currFollower.IsFighting ? "Rest" : "Fight"; RefreshPos(); } }