Esempio n. 1
0
        public static ProdExclamationPoint Instantiate(ProdExclamationPoint prefab, Transform parent)
        {
            ProdExclamationPoint prodExclamationPoint = Object.Instantiate <ProdExclamationPoint>(prefab);

            prodExclamationPoint.get_transform().set_parent(parent);
            prodExclamationPoint.get_transform().localScaleZero();
            prodExclamationPoint.get_transform().localPositionZero();
            prodExclamationPoint.sprite.alpha = 0f;
            return(prodExclamationPoint);
        }
Esempio n. 2
0
        public static ProdExclamationPoint Instantiate(ProdExclamationPoint prefab, Transform parent)
        {
            ProdExclamationPoint prodExclamationPoint = UnityEngine.Object.Instantiate(prefab);

            prodExclamationPoint.transform.parent = parent;
            prodExclamationPoint.transform.localScaleZero();
            prodExclamationPoint.transform.localPositionZero();
            prodExclamationPoint.sprite.alpha = 0f;
            return(prodExclamationPoint);
        }
Esempio n. 3
0
        private IEnumerator PlayExclamationPointAnimationObserver(UniRx.IObserver <bool> observer)
        {
            GameObject anchor = new GameObject("ProdExclamationPointAnchor");

            anchor.transform.parent = base.transform;
            anchor.transform.localScaleOne();
            anchor.transform.localPosition = Vector3.up * 32f;
            ProdExclamationPoint pxp = ProdExclamationPoint.Instantiate(((Component)_prefabProdExclamationPoint).GetComponent <ProdExclamationPoint>(), anchor.transform);

            yield return(pxp.Play().StartAsCoroutine());

            UnityEngine.Object.Destroy(anchor.gameObject);
            Mem.DelComponentSafe(ref pxp);
            observer.OnNext(value: true);
            observer.OnCompleted();
            yield return(Observable.NextFrame(FrameCountType.EndOfFrame).StartAsCoroutine());
        }