public bool Init(int nIndex, bool isColliderEnabled, int nGroup, DelDecideHexButtonEx decideDelegate) { this.index = nIndex; this.isColliderEnabled = isColliderEnabled; this.toggleGroup = nGroup; this._delDecideAdvancingWithdrawalButtonEx = decideDelegate; this.OnInit(); return(true); }
public override bool Init() { base.Init(); this._iMode = ProdWithdrawalDecisionSelection.Mode.Selection; this._clsState = new StatementMachine(); this._isDecide = false; this._isInputPossible = false; this._delDecideWithdrawalButton = null; this.InitObjects(); UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.SetNavigationInWithdrawalDecision(this._iMode); return(true); }
private void Awake() { this._nIndex = 0; this._nSpriteIndex = 0; this.isFocus = false; this._actCallback = null; this._delDecideAdvancingWithdrawalButtonEx = null; this.toggle.startsActive = false; this.toggle.validator = new UIToggle.Validate(this.OnValidator); this.toggle.onDecide = new Action(this.OnDecide); this._uiHexSelector.alpha = 0.01f; this.spriteIndex = 0; this.toggle.Set(false); this.SetForeground(); this.StopFocusAnimatiom(); base.get_transform().localScaleZero(); this.toggle.onDecide = new Action(this.OnDecide); }
private void Awake() { _nIndex = 0; _nSpriteIndex = 0; isFocus = false; _actCallback = null; _delDecideAdvancingWithdrawalButtonEx = null; toggle.startsActive = false; toggle.validator = OnValidator; toggle.onDecide = OnDecide; _uiHexSelector.alpha = 0.01f; spriteIndex = 0; toggle.Set(state: false); SetForeground(); StopFocusAnimatiom(); base.transform.localScaleZero(); toggle.onDecide = OnDecide; }
public void Play(Action forceCallback, DelDecideHexButtonEx decideCallback) { base.Init(); this._actForceCallback = forceCallback; this._delDecideWithdrawalButton = decideCallback; Observable.Timer(TimeSpan.FromSeconds(0.30000001192092896)).Subscribe(delegate(long _) { BattleShutter shutter = BattleTaskManager.GetPrefabFile().battleShutter; shutter.ReqMode(BaseShutter.ShutterMode.Close, delegate { this.get_transform().localScaleOne(); Observable.FromCoroutine(new Func <IEnumerator>(this.PlayForceCallback), false).Subscribe(delegate(Unit __) { shutter.ReqMode(BaseShutter.ShutterMode.Open, delegate { }); }); }); }); }
public void Play(DelDecideHexButtonEx decideCallback) { base.Init(); _delDecideAdvancingWithdrawalButton = decideCallback; base.transform.localScaleOne(); if (_iRootType == Generics.BattleRootType.SortieMap) { ShowHexButtons2Sortie(); } else { ShowHexButtons2Rebellion(); } _uiFleetInfos.Show(); UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.SetNavigationInAdvancingWithDrawal(); battleNavigation.Show(0.2f, null); battleNavigation.panel.depth = panel.depth + 1; }
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 { }); }); }); }); }