fix #44; v2.2.0 has 2 warnings

pull/52/head
mob-sakai 2019-02-26 11:10:47 +09:00
parent 041ddf679a
commit 76eea1665e
2 changed files with 5 additions and 5 deletions

View File

@ -54,9 +54,9 @@ namespace Coffee.UIExtensions
}; };
[SerializeField] [SerializeField]
string m_Name; string m_Name = "";
[SerializeField] [SerializeField]
ShaderPropertyType m_Type; ShaderPropertyType m_Type = ShaderPropertyType.Vector;
public int id { get; private set; } public int id { get; private set; }
public ShaderPropertyType type { get { return m_Type; } } public ShaderPropertyType type { get { return m_Type; } }

View File

@ -7,9 +7,9 @@ namespace Coffee.UIExtensions.Demo
{ {
public class UIParticle_Demo : MonoBehaviour public class UIParticle_Demo : MonoBehaviour
{ {
[SerializeField] ParticleSystem [] m_ParticleSystems; [SerializeField] ParticleSystem [] m_ParticleSystems = new ParticleSystem [0];
[SerializeField] List<Transform> m_ScalingByTransforms; [SerializeField] List<Transform> m_ScalingByTransforms = new List<Transform> ();
[SerializeField] List<UIParticle> m_ScalingByUIParticles; [SerializeField] List<UIParticle> m_ScalingByUIParticles = new List<UIParticle> ();
public void SetTimeScale (float scale) public void SetTimeScale (float scale)
{ {