private void Awake() { this.loginBounsParam = this.loginBounsParamGO.GetComponent <LoginBonusParam>(); this.animator = base.gameObject.GetComponent <Animator>(); if (this.animator == null) { this.animator = base.gameObject.AddComponent <Animator>(); } this.animator.runtimeAnimatorController = this.loginBounsParam.animatorController; }
public override void Show(Action <int> f, float sizeX, float sizeY, float aT) { base.HideDLG(); Action <UnityEngine.Object> actEnd = delegate(UnityEngine.Object result) { if (result != null) { this.loginBonusParam = ((GameObject)result).GetComponent <LoginBonusParam>(); this.ShowDLG(); this.< Show > __BaseCallProxy0(f, sizeX, sizeY, aT); this.SetUp(); } else { f(0); this.ClosePanel(false); } }; AssetDataMng.Instance().LoadObjectASync("LoginBonus/" + this.loginBonus.loginBonusId + "/LoginBonus", actEnd); }