public static ProdWithdrawalDecisionSelection Instantiate(ProdWithdrawalDecisionSelection prefab, Transform parent) { ProdWithdrawalDecisionSelection prodWithdrawalDecisionSelection = UnityEngine.Object.Instantiate(prefab); prodWithdrawalDecisionSelection.transform.parent = parent; prodWithdrawalDecisionSelection.transform.localScaleZero(); prodWithdrawalDecisionSelection.transform.localPositionZero(); prodWithdrawalDecisionSelection.Init(); return(prodWithdrawalDecisionSelection); }
public static ProdWithdrawalDecisionSelection Instantiate(ProdWithdrawalDecisionSelection prefab, Transform parent) { ProdWithdrawalDecisionSelection prodWithdrawalDecisionSelection = Object.Instantiate <ProdWithdrawalDecisionSelection>(prefab); prodWithdrawalDecisionSelection.get_transform().set_parent(parent); prodWithdrawalDecisionSelection.get_transform().localScaleZero(); prodWithdrawalDecisionSelection.get_transform().localPositionZero(); prodWithdrawalDecisionSelection.Init(); return(prodWithdrawalDecisionSelection); }
public void Play(Action forceCallback, DelDecideHexButtonEx decideCallback) { base.Init(); _actForceCallback = forceCallback; _delDecideWithdrawalButton = decideCallback; Observable.Timer(TimeSpan.FromSeconds(0.30000001192092896)).Subscribe(delegate { ProdWithdrawalDecisionSelection prodWithdrawalDecisionSelection = this; BattleShutter shutter = BattleTaskManager.GetPrefabFile().battleShutter; shutter.ReqMode(BaseShutter.ShutterMode.Close, delegate { prodWithdrawalDecisionSelection.transform.localScaleOne(); Observable.FromCoroutine(prodWithdrawalDecisionSelection.PlayForceCallback).Subscribe(delegate { shutter.ReqMode(BaseShutter.ShutterMode.Open, delegate { }); }); }); }); }