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