public void Init(HeroHeadHud hudOwner, PoolObjHandle <ActorRoot> myHero) { if (myHero != 0) { this._hudOwner = hudOwner; this._myHero = myHero; this.SetState(HeadState.Normal); uint configId = (uint)myHero.handle.TheActorMeta.ConfigId; this.HeroHeadImg.SetSprite(CUIUtility.s_Sprite_Dynamic_BustCircle_Dir + CSkinInfo.GetHeroSkinPic(configId, 0), Singleton <CBattleSystem> .GetInstance().FightFormScript, true, false, false); this.OnHeroHpChange(myHero.handle.ValueComponent.actorHp, myHero.handle.ValueComponent.actorHpTotal); } }
public void SetPrivates(PlayerHead.HeadState inHeadState, PoolObjHandle <ActorRoot> inHero, HeroHeadHud inHudOwner) { this._myHero = inHero; this._hudOwner = inHudOwner; this.SetState(inHeadState); }