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