示例#1
0
 private void PlayEffect()
 {
     if (effectAsset != null)
     {
         handle = EffekseerSystem.PlayEffect(effectAsset,
                                             (emitterObject) ? emitterObject.transform.position : Vector3.zero);
     }
 }
示例#2
0
        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);
            }
        }