private void PlayEffect() { if (effectAsset != null) { handle = EffekseerSystem.PlayEffect(effectAsset, (emitterObject) ? emitterObject.transform.position : Vector3.zero); } }
void ApplyRotationAndScale(ref EffekseerHandle handle) { handle.SetRotation(transform.rotation); if (EmitterScale == EffekseerEmitterScale.Local) { handle.SetScale(transform.localScale); } else if (EmitterScale == EffekseerEmitterScale.Global) { handle.SetScale(transform.lossyScale); } }