Esempio n. 1
0
        //ルール画像つきのフェードのスキップ
        public virtual void SkipRuleFade()
        {
            UguiTransition transition = this.gameObject.GetComponent <UguiTransition>();

            if (transition == null)
            {
                Debug.LogError("Not found UguiTransition on SkipRuleFade");
                return;
            }
            transition.SKipRuleFade();
        }
Esempio n. 2
0
        //ルール画像つきのフェードイン
        public override void RuleFadeIn(AdvEngine engine, AdvTransitionArgs data, Action onComplete)
        {
            UguiTransition transition = this.gameObject.AddComponent <UguiTransition>();

            transition.RuleFadeIn(
                engine.EffectManager.FindRuleTexture(data.TextureName),
                data.Vague,
                RenderTextureSpace.RenderTextureType == AdvRenderTextureMode.Image,
                data.GetSkippedTime(engine),
                () =>
            {
                Destroy(transition);
                if (onComplete != null)
                {
                    onComplete();
                }
            });
        }
Esempio n. 3
0
        //ルール画像つきのフェードイン(オブジェクト単位にかけるのでテクスチャ描き込み効果なし)
        public virtual void RuleFadeIn(AdvEngine engine, AdvTransitionArgs data, Action onComplete)
        {
            UguiTransition transition = this.gameObject.AddComponent <UguiTransition>();

            transition.RuleFadeIn(
                engine.EffectManager.FindRuleTexture(data.TextureName),
                data.Vague,
                false,
                data.GetSkippedTime(engine),
                () =>
            {
                Destroy(transition);
                if (onComplete != null)
                {
                    onComplete();
                }
            });
        }
Esempio n. 4
0
        //ルール画像つきのフェードアウト(オブジェクト単位にかけるのでテクスチャ描き込み効果なし)
        public virtual void RuleFadeOut(AdvEngine engine, AdvTransitionArgs data, Action onComplete)
        {
            UguiTransition transition = this.gameObject.AddComponent <UguiTransition>();

            transition.UnscaledTime = Engine.Time.Unscaled;
            transition.RuleFadeOut(
                engine.EffectManager.FindRuleTexture(data.TextureName),
                data.Vague,
                false,
                data.GetSkippedTime(engine),
                () =>
            {
                transition.RemoveComponentMySelf(false);
                if (onComplete != null)
                {
                    onComplete();
                }
            });
        }
Esempio n. 5
0
        //ルール画像つきのフェードアウト
        public override void RuleFadeOut(AdvEngine engine, AdvTransitionArgs data, Action onComplete)
        {
            UguiTransition transition = this.gameObject.AddComponent <UguiTransition>();

            transition.RuleFadeOut(
                engine.EffectManager.FindRuleTexture(data.TextureName),
                data.Vague,
                RenderTextureSpace.RenderTextureType == AdvRenderTextureMode.Image,
                data.GetSkippedTime(engine),
                () =>
            {
                transition.RemoveComponentMySelf(false);
                RawImage.SetAlpha(0);
                if (onComplete != null)
                {
                    onComplete();
                }
            });
        }