示例#1
0
        public override void Enter(AGE.Action _action, Track _track)
        {
            this.actor_ = _action.GetActorHandle(this.targetId);
            if (this.actor_ != 0)
            {
                MaterialHurtEffect matHurtEffect = this.actor_.handle.MatHurtEffect;
                if (matHurtEffect == null)
                {
                    this.actor_.Release();
                }
                else
                {
                    switch (this.effectType)
                    {
                    case MaterialEffectType.Freeze:
                        this.playingId = matHurtEffect.PlayFreezeEffect();
                        break;

                    case MaterialEffectType.Stone:
                        this.playingId = matHurtEffect.PlayStoneEffect();
                        break;

                    case MaterialEffectType.Translucent:
                        matHurtEffect.SetTranslucent(true);
                        break;

                    case MaterialEffectType.HighLit:
                        matHurtEffect.PlayHighLitEffect(this.highLitColor);
                        break;
                    }
                }
            }
        }
示例#2
0
        public override void Enter(Action _action, Track _track)
        {
            this.actor_ = _action.GetActorHandle(this.targetId);
            if (!this.actor_)
            {
                return;
            }
            MaterialHurtEffect matHurtEffect = this.actor_.get_handle().MatHurtEffect;

            if (matHurtEffect == null)
            {
                this.actor_.Release();
                return;
            }
            switch (this.effectType)
            {
            case MaterialEffectType.Freeze:
                this.playingId = matHurtEffect.PlayFreezeEffect();
                break;

            case MaterialEffectType.Stone:
                this.playingId = matHurtEffect.PlayStoneEffect();
                break;

            case MaterialEffectType.Translucent:
                matHurtEffect.SetTranslucent(true, false);
                break;

            case MaterialEffectType.HighLit:
                this.hlcId = matHurtEffect.PlayHighLitEffect(this.highLitColor);
                break;
            }
        }