[IcdeSlide] Version 1.0

master
uc deploy 6 years ago
parent bc4854fe54
commit fe5608462e
  1. 4
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/DsAssets/DisnyLogo.anim
  2. 2
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/DsAssets/DisnyLogo.asset
  3. 2
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/Material/Particle 1.mat
  4. 2
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/Material/Particle 2.mat
  5. 2
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/Material/Particle 3.mat
  6. 2
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/Material/Particle 4.mat
  7. 2
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/Material/Particle 5.mat
  8. 2
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Frozen/Material/Particle.mat
  9. 1603
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Scenes/Main_IceSlide.unity
  10. 38
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Script/SnowFlake.cs
  11. 1
      04-IceSlide/Unity-19050-04-IceSlide/19050-04-IceSlide/Assets/Shader/UIGamma.shader

@ -21,7 +21,7 @@ AnimationClip:
- curve: - curve:
- time: 0.1 - time: 0.1
value: {fileID: 0} value: {fileID: 0}
- time: 5 - time: 5.366667
value: {fileID: 0} value: {fileID: 0}
attribute: videoAsset attribute: videoAsset
path: path:
@ -49,7 +49,7 @@ AnimationClip:
m_AdditiveReferencePoseClip: {fileID: 0} m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0 m_AdditiveReferencePoseTime: 0
m_StartTime: 0 m_StartTime: 0
m_StopTime: 5.016667 m_StopTime: 5.3833337
m_OrientationOffsetY: 0 m_OrientationOffsetY: 0
m_Level: 0 m_Level: 0
m_CycleOffset: 0 m_CycleOffset: 0

@ -13,5 +13,5 @@ MonoBehaviour:
m_Name: DisnyLogo m_Name: DisnyLogo
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_VideoLocation: 1 m_VideoLocation: 1
m_VideoPath: ..\..\..\..\_Deploy_PC\04_IceSlide\UnityBuild-19050-04_IceSlide\Material\SHD_logo_reveal.avi m_VideoPath: ..\..\..\..\_Deploy_PC\04_IceSlide\UnityBuild-19050-04_IceSlide\Material\_SHDlogo_reveal.avi
animationClip: {fileID: 7400000, guid: 91be761ac10551049a286e73f4589914, type: 2} animationClip: {fileID: 7400000, guid: 91be761ac10551049a286e73f4589914, type: 2}

@ -91,6 +91,6 @@ Material:
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 4.000001, g: 4.000001, b: 4.000001, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}

@ -91,6 +91,6 @@ Material:
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 4.000001, g: 4.000001, b: 4.000001, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}

@ -91,6 +91,6 @@ Material:
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 4.000001, g: 4.000001, b: 4.000001, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}

@ -91,6 +91,6 @@ Material:
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 4.000001, g: 4.000001, b: 4.000001, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}

@ -91,6 +91,6 @@ Material:
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 4.000001, g: 4.000001, b: 4.000001, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}

@ -91,6 +91,6 @@ Material:
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 4.000001, g: 4.000001, b: 4.000001, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}

@ -1,6 +1,8 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UltraCombos;
using UnityEngine.UI;
public class SnowFlake : MonoBehaviour public class SnowFlake : MonoBehaviour
{ {
@ -11,9 +13,19 @@ public class SnowFlake : MonoBehaviour
protected const string Spwan = "Snowflake_Spawn"; protected const string Spwan = "Snowflake_Spawn";
public bool IsPlay { get; private set; } public bool IsPlay { get; private set; }
public AudioSource AudioSource;
private const float audioDelayTime = 0.5f;
public OverlayVfx OverlayVfx;
public RawImage VfxImg;
[SerializeField] private DShowMoviePlayer _vfxVideo;
protected void Awake() protected void Awake()
{ {
_animator = GetComponent<Animator>(); _animator = GetComponent<Animator>();
AudioSource = GetComponent<AudioSource>();
VfxImg.enabled = false;
} }
@ -26,6 +38,10 @@ public class SnowFlake : MonoBehaviour
CheckPlayEnd(); CheckPlayEnd();
} }
if(_vfxVideo != null)
{
VfxImg.texture = _vfxVideo.Texture;
}
} }
public virtual void CheckPlayEnd() public virtual void CheckPlayEnd()
@ -53,6 +69,22 @@ public class SnowFlake : MonoBehaviour
return; return;
_animator.SetBool("Play", false); _animator.SetBool("Play", false);
_animator.SetTrigger("Trigger"); _animator.SetTrigger("Trigger");
if(_vfxVideo == null)
OverlayVfx.Take(out _vfxVideo);
StartCoroutine(WaitToDelay());
}
IEnumerator WaitToDelay()
{
yield return new WaitForSeconds(audioDelayTime);
AudioSource?.Play();
yield return new WaitForSeconds(0.5f);
if (_vfxVideo!= null)
{
_vfxVideo.Play();
VfxImg.texture = _vfxVideo.Texture;
VfxImg.enabled = true;
}
} }
public virtual void Reset() public virtual void Reset()
@ -61,6 +93,12 @@ public class SnowFlake : MonoBehaviour
_animator.SetTrigger("Reset"); _animator.SetTrigger("Reset");
_snowFlakeBehaviour.ResetFlake(); _snowFlakeBehaviour.ResetFlake();
IsPlay = false; IsPlay = false;
if(_vfxVideo != null)
{
OverlayVfx.Put(_vfxVideo);
_vfxVideo = null;
VfxImg.enabled = false;
}
} }
} }

@ -111,6 +111,7 @@ Shader "UI/LinearToGamma"
#endif #endif
color.rgb = GammaToLinearSpace(color.rgb); color.rgb = GammaToLinearSpace(color.rgb);
return color; return color;
} }
ENDCG ENDCG

Loading…
Cancel
Save