From 76eea1665e44f6666e1e8bc05b754363ab05f948 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 26 Feb 2019 11:10:47 +0900 Subject: [PATCH] fix #44; v2.2.0 has 2 warnings --- Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs | 4 ++-- Assets/UIParticle_Demo/UIParticle_Demo.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs b/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs index 05bbc19..b808b27 100755 --- a/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs +++ b/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs @@ -54,9 +54,9 @@ public enum ShaderPropertyType }; [SerializeField] - string m_Name; + string m_Name = ""; [SerializeField] - ShaderPropertyType m_Type; + ShaderPropertyType m_Type = ShaderPropertyType.Vector; public int id { get; private set; } public ShaderPropertyType type { get { return m_Type; } } diff --git a/Assets/UIParticle_Demo/UIParticle_Demo.cs b/Assets/UIParticle_Demo/UIParticle_Demo.cs index e5e614a..36d69bf 100644 --- a/Assets/UIParticle_Demo/UIParticle_Demo.cs +++ b/Assets/UIParticle_Demo/UIParticle_Demo.cs @@ -7,9 +7,9 @@ namespace Coffee.UIExtensions.Demo { public class UIParticle_Demo : MonoBehaviour { - [SerializeField] ParticleSystem [] m_ParticleSystems; - [SerializeField] List m_ScalingByTransforms; - [SerializeField] List m_ScalingByUIParticles; + [SerializeField] ParticleSystem [] m_ParticleSystems = new ParticleSystem [0]; + [SerializeField] List m_ScalingByTransforms = new List (); + [SerializeField] List m_ScalingByUIParticles = new List (); public void SetTimeScale (float scale) {