예제 #1
0
 public override void _Create()
 {
     if (particles == null)
     {
         particles = GetComponent <Particles>();
     }
     SetStructSize();
     SetCount();
     SetBufferType();
     DoCreate();
     Create();
 }
예제 #2
0
 public override void _Create()
 {
     if (mpb == null)
     {
         mpb = new MaterialPropertyBlock();
     }
     if (particles == null)
     {
         particles = GetComponent <Particles>();
     }
     SetStructSize();
     SetCount();
     SetBufferType();
     DoCreate();
     Create();
 }