Skip to content

Commit

Permalink
fix #44; v2.2.0 has 2 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Feb 26, 2019
1 parent 041ddf6 commit 76eea16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; } }

Expand Down
6 changes: 3 additions & 3 deletions Assets/UIParticle_Demo/UIParticle_Demo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace Coffee.UIExtensions.Demo
{
public class UIParticle_Demo : MonoBehaviour
{
[SerializeField] ParticleSystem [] m_ParticleSystems;
[SerializeField] List<Transform> m_ScalingByTransforms;
[SerializeField] List<UIParticle> m_ScalingByUIParticles;
[SerializeField] ParticleSystem [] m_ParticleSystems = new ParticleSystem [0];
[SerializeField] List<Transform> m_ScalingByTransforms = new List<Transform> ();
[SerializeField] List<UIParticle> m_ScalingByUIParticles = new List<UIParticle> ();

public void SetTimeScale (float scale)
{
Expand Down

0 comments on commit 76eea16

Please sign in to comment.