public void Refresh(LopetDataEx data) { if (!this.initFlag) { this.CreateObjects(); } if (data == null) { return; } int num = 0; int num2 = 0; int num3 = 0; int num4 = 0; data.GetAttribute(ref num, ref num2, ref num3, ref num4); this.mHP.text = num.ToString(); this.mAttack.text = num2.ToString(); this.mPhysicD.text = num3.ToString(); this.mMagicD.text = num4.ToString(); }
public void SetLopetData(LopetDataEx lpData, ActorController.EFactionType faction) { if (lpData == null) { global::Debug.LogError(new object[] { "lpData == null" }); return; } this.playerSkillID = lpData.Info.PlayerSkillID; this.actorType = ActorController.EActorType.ELopet; this.factionType = faction; this.Unattacked = true; this.Unhealed = true; int num = 0; int num2 = 0; int num3 = 0; int num4 = 0; lpData.GetAttribute(ref num, ref num2, ref num3, ref num4); this.attInit[1] = (long)num; this.attInit[2] = (long)num2; this.attInit[3] = (long)num3; this.attInit[4] = (long)num4; this.Init(); }
public void SetOldLopetAwakeData(LopetDataEx data) { data.GetAttribute(ref this.MaxHp, ref this.Attack, ref this.WuFang, ref this.FaFang); }