public override bool Init(object data) { this._ctrlBCCommandSelect = CtrlBCCommandSelect.Instantiate(BattleCutManager.GetPrefabFile().prefabCtrlBCCommandSelect.GetComponent <CtrlBCCommandSelect>(), BattleCutManager.GetSharedPlase(), BattleCutManager.GetBattleManager().GetCommandPhaseModel()); this._ctrlBCCommandSelect.Play(delegate { BattleCutManager.ReqPhase(BattleCutPhase.DayBattle); }); return(base.Init(data)); }
public static CtrlBCCommandSelect Instantiate(CtrlBCCommandSelect prefab, Transform parent, CommandPhaseModel model) { CtrlBCCommandSelect ctrlBCCommandSelect = Object.Instantiate <CtrlBCCommandSelect>(prefab); ctrlBCCommandSelect.get_transform().set_parent(parent); ctrlBCCommandSelect.get_transform().localPositionZero(); ctrlBCCommandSelect.get_transform().localScaleOne(); ctrlBCCommandSelect.Init(model); return(ctrlBCCommandSelect); }
public static CtrlBCCommandSelect Instantiate(CtrlBCCommandSelect prefab, Transform parent, CommandPhaseModel model) { CtrlBCCommandSelect ctrlBCCommandSelect = UnityEngine.Object.Instantiate(prefab); ctrlBCCommandSelect.transform.parent = parent; ctrlBCCommandSelect.transform.localPositionZero(); ctrlBCCommandSelect.transform.localScaleOne(); ctrlBCCommandSelect.Init(model); return(ctrlBCCommandSelect); }