Effect(十一)—— SkillAreaEffect

来源:互联网 发布:eplan2.6破解软件 编辑:程序博客网 时间:2024/06/06 02:18

目录为:Assets/Scripts/Effect/目录下
SkillAreaEffect.cs

using UnityEngine;using System.Collections;using System.Collections.Generic;public class SkillAreaEffect: IEffect{    public SkillAreaEffect()    {        mType = IEffect.ESkillEffectType.eET_Area;    }    public override void OnLoadComplete()    {        Quaternion rt = Quaternion.LookRotation (dir);        GetTransform ().rotation = rt;        GetTransform ().position = fixPosition;    }    public override void Update()    {        if (isDead)        {            return;        }        base.Update ();    }}
原创粉丝点击