Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 4
0
 public override bool Terminate(object data)
 {
     Object.Destroy(this._prodFormationSelect.get_gameObject());
     this._prodFormationSelect = null;
     return(false);
 }