//ルール画像つきのフェードのスキップ public virtual void SkipRuleFade() { UguiTransition transition = this.gameObject.GetComponent <UguiTransition>(); if (transition == null) { Debug.LogError("Not found UguiTransition on SkipRuleFade"); return; } transition.SKipRuleFade(); }
//ルール画像つきのフェードイン 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(); } }); }
//ルール画像つきのフェードイン(オブジェクト単位にかけるのでテクスチャ描き込み効果なし) 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(); } }); }
//ルール画像つきのフェードアウト(オブジェクト単位にかけるのでテクスチャ描き込み効果なし) 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(); } }); }
//ルール画像つきのフェードアウト 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(); } }); }