public override void SetPersonInfo(NrPersonInfoBase pkPersonInfo) { base.SetPersonInfo(pkPersonInfo); NrPersonInfoBattle nrPersonInfoBattle = pkPersonInfo as NrPersonInfoBattle; this.m_kCharBasicPart.SetData(nrPersonInfoBattle.GetBasePart()); }
public int SetChar(BATTLE_SOLDIER_INFO MakeCharInfo) { if (MakeCharInfo == null) { return(-1); } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(MakeCharInfo.CharKind); NrPersonInfoBattle nrPersonInfoBattle = new NrPersonInfoBattle(); if (charKindInfo != null) { eCharKindType charKindType = (eCharKindType)MakeCharInfo.CharKindType; nrPersonInfoBattle.SetUserData(MakeCharInfo); return(this.SetChar(MakeCharInfo.CharUnique, MakeCharInfo.BUID, MakeCharInfo.CharKind, charKindType, nrPersonInfoBattle, MakeCharInfo.Speed, ref MakeCharInfo.kPartInfo, MakeCharInfo.SolIndex)); } Debug.LogWarning("CharKind not found !!!!! Name = " + nrPersonInfoBattle.GetCharName() + ", Kind = " + MakeCharInfo.CharKind.ToString()); return(-1); }