예제 #1
0
        public static ProdFormationSelect Instantiate(ProdFormationSelect prefab, Transform parent, DeckModel model)
        {
            ProdFormationSelect prodFormationSelect = Object.Instantiate <ProdFormationSelect>(prefab);

            prodFormationSelect.get_transform().set_parent(parent);
            prodFormationSelect.get_transform().localScaleOne();
            prodFormationSelect.get_transform().localPositionZero();
            prodFormationSelect.Init(model);
            return(prodFormationSelect);
        }
예제 #2
0
        public static ProdFormationSelect Instantiate(ProdFormationSelect prefab, Transform parent, DeckModel model)
        {
            ProdFormationSelect prodFormationSelect = UnityEngine.Object.Instantiate(prefab);

            prodFormationSelect.transform.parent = parent;
            prodFormationSelect.transform.localScaleOne();
            prodFormationSelect.transform.localPositionZero();
            prodFormationSelect.Init(model);
            return(prodFormationSelect);
        }
예제 #3
0
        private void PreparaNext(bool isForward)
        {
            BattleFormationKinds1 iSelectFormation = _iSelectFormation;

            _iSelectFormation = (BattleFormationKinds1)Mathe.NextElement((int)_iSelectFormation, 1, 5, isForward, delegate(int x)
            {
                ProdFormationSelect prodFormationSelect = this;
                return(_listLabelButton.Find((UILabelButton y) => y.index == x).isValid);
            });
            if (iSelectFormation != _iSelectFormation)
            {
                ChangeFocus(_iSelectFormation);
            }
        }
예제 #4
0
 public override bool Terminate(object data)
 {
     Object.Destroy(this._prodFormationSelect.get_gameObject());
     this._prodFormationSelect = null;
     return(false);
 }