Beispiel #1
0
 public ParticleSystem PlayParticle(MoveEditor.ParticleEventProperties properties, bool forcePlay)
 {
     if (m_fxHelper != null)
     {
         return(m_fxHelper.PlayParticle(properties, forcePlay));
     }
     return(null);
 }
Beispiel #2
0
    private void OnParticleFieldAdd(MoveEditor.ParticleEventProperties properties, ParticleSystem ps, bool flipped)
    {
        CleanUpPreviewParticle();

        if (ps != null && _previewGameObject != null)
        {
            _previewParticleSystem = MoveEditor.MoveUtils.InstantiateParticle(this, properties, GetAnimator(), flipped, true);
            if (_previewParticleSystem != null)
            {
                AttachTransform.Detach(_previewParticleSystem.gameObject);
                _previewParticleSystem.transform.parent = MoveEditor.MoveUtils.GetBodyPartTransform(GetAnimator(), properties._bodyPart, properties._attachmentPath);
                Selection.activeTransform = _previewParticleSystem.transform;
            }
        }
    }
Beispiel #3
0
        static StackObject *PlayParticle_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @forcePlay = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            MoveEditor.ParticleEventProperties @properties = (MoveEditor.ParticleEventProperties) typeof(MoveEditor.ParticleEventProperties).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            MoveEditor.FXHelper instance_of_this_method = (MoveEditor.FXHelper) typeof(MoveEditor.FXHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.PlayParticle(@properties, @forcePlay);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Beispiel #4
0
        public override void Start()
        {
            float blend_time = 0.00f;// 0.15f * Combatant.MoveController.GetCurrentStateInfo().length;

            Combatant.MoveController.TransitionTo(MoveState);
            Combatant.MoveController.CrossFade(MoveController.m_launch_hash, blend_time, defaultLayer, NormalizedTime);

            string name = Combatant.targetSelectSenderPS.Valiad ? Combatant.targetSelectSenderPS.Name : Combatant.defaultTargetSelectSenderPS;

            MoveEditor.ParticleEventProperties properties = new MoveEditor.ParticleEventProperties();
            properties._eventName          = name;
            properties.FlippedParticleName = properties.ParticleName = name;
            properties._bodyPart           = MoveEditor.BodyPart.Root;
            properties._parent             = false;
            properties._stopOnOverride     = false;
            properties._stopOnExit         = false;

            Combatant.FXHelper.PlayParticle(properties, false);

            //EventManager.instance.Raise(new CombatLaunchEvent(Combatant));
        }