private IEnumerator PlayDecideAnimation(UniRx.IObserver <bool> observer) { yield return(null); _listDifficultyBtn.ForEach(delegate(UIDifficultyBtn x) { // _003CPlayDecideAnimation_003Ec__Iterator1A0 _003CPlayDecideAnimation_003Ec__Iterator1A = this; if (x.index == this._nIndex) { UIWritingBrush uIWritingBrush = UIWritingBrush.Instantiate(this._prefabUIWritingBrush.GetComponent <UIWritingBrush>(), this.transform); uIWritingBrush.transform.position = x.wrightBrushAnchor.position; uIWritingBrush.Play(delegate { Observable.Timer(TimeSpan.FromSeconds(1.0)).Subscribe(delegate { observer.OnNext(value: true); observer.OnCompleted(); }); }); x.ShowDifficultyRedLabel(); } else { x.transform.LTValue(1f, 0.5f, 0.2f).setEase(LeanTweenType.linear).setOnUpdate(delegate(float y) { x.widget.alpha = y; }); } }); }
public static UIWritingBrush Instantiate(UIWritingBrush prefab, Transform parent) { UIWritingBrush uIWritingBrush = Object.Instantiate <UIWritingBrush>(prefab); uIWritingBrush.get_transform().set_parent(parent); uIWritingBrush.get_transform().localScaleZero(); uIWritingBrush.get_transform().localPositionZero(); uIWritingBrush.Init(); return(uIWritingBrush); }
public static UIWritingBrush Instantiate(UIWritingBrush prefab, Transform parent) { UIWritingBrush uIWritingBrush = UnityEngine.Object.Instantiate(prefab); uIWritingBrush.transform.parent = parent; uIWritingBrush.transform.localScaleZero(); uIWritingBrush.transform.localPositionZero(); uIWritingBrush.Init(); return(uIWritingBrush); }