protected override void OnInit()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <Text>(this.Text_Attribute.gameObject);
     this.Text_Attribute.gameObject.SetActive(false);
     if (< > f__am$cache0 == null)
     {
Example #2
0
 protected override void OnAwake()
 {
     if (this.mPool == null)
     {
         this.mPool = LocalUnityObjctPool.Create(base.gameObject);
         this.mPool.CreateCache <ShopItemEquipExp>(this.itemgold);
         this.itemgold.SetActive(false);
     }
 }
Example #3
0
 protected override void OnAwake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <ShopOneStageDiscountOneCtrl>(this.itemone);
     this.mPool.CreateCache <RectTransform>(this.itemadd);
     this.itemone.SetActive(false);
     this.itemadd.SetActive(false);
     if (< > f__am$cache0 == null)
     {
    public static LocalUnityObjctPool Create(GameObject parent)
    {
        GameObject obj2 = new GameObject("LocalPool");

        obj2.transform.SetParent(parent.transform, false);
        LocalUnityObjctPool pool = obj2.AddComponent <LocalUnityObjctPool>();

        obj2.SetActive(false);
        return(pool);
    }
Example #5
0
    protected override void OnInit()
    {
        this.Button_Close.onClick  = new Action(this.OnClickClose);
        this.Button_Shadow.onClick = new Action(this.OnClickClose);
        this.Button_Get.onClick    = new Action(this.OnClickGet);
        GameObject gameObject = CInstance <UIResourceCreator> .Instance.GetPropOneEquip(base.transform).gameObject;

        gameObject.SetActive(false);
        this.mPool = LocalUnityObjctPool.Create(base.gameObject);
        this.mPool.CreateCache <PropOneEquip>(gameObject);
    }
 private void Awake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <GoldTextCtrl>(this.copyreward);
     this.copyreward.SetActive(false);
     this.Button_Get.onClick = delegate {
         if (this.OnClickButton != null)
         {
             this.OnClickButton(this.mIndex, this);
         }
     };
 }
Example #7
0
 private void Awake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <MainUILevelItem>(this.copychapter);
     this.copychapter.SetActive(false);
     this.Button_Left.onClick = delegate {
         if (this.currentstage > 1)
         {
             this.currentstage--;
             this.mScrollRect.SetPage(this.currentstage - 1, true, null);
             this.update_button();
         }
     };
     this.Button_Right.onClick = delegate {
         if (this.currentstage < LocalSave.Instance.mStage.CurrentStage)
         {
             this.currentstage++;
             this.mScrollRect.SetPage(this.currentstage - 1, true, null);
             this.update_button();
         }
     };
     if (< > f__am$cache0 == null)
     {
Example #8
0
 public void Init(GameObject obj, GameObject copyitem)
 {
     this.mPool = LocalUnityObjctPool.Create(obj);
     this.mPool.CreateCache <T>(copyitem);
 }
 private void Awake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <UnlockStageSkillOneCtrl>(this.copyitem);
     this.copyitem.SetActive(false);
 }
Example #10
0
 private void Awake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <BoxOpenOneCtrl>(this.itemone);
     this.perwidth = (this.itemone.transform as RectTransform).sizeDelta.x;
 }
Example #11
0
 private void Awake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <ChallengeConditionOneCtrl>(this.copyitem);
 }
Example #12
0
 private void Awake()
 {
     this.mObjPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mObjPool.CreateCache <ActiveDiffCtrl>(this.copyDiff);
 }
 private void Awake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <BoxOpenGetOne>(this.copyitem);
 }
 private void Awake()
 {
     this.mPool = LocalUnityObjctPool.Create(base.gameObject);
     this.mPool.CreateCache <EquipCombineChooseOne>(this.copychoose);
 }