using UnityEngine; using System.Collections; public class SpeedDownBulletBuff : BulletBuff { public float speed; override public void end(ITarget target) { if(target is Craft) { SpeedDownBuff buff = (target as Craft).gameObject.AddComponent (); buff.duration = duration; buff.speed = speed; buff.init (graphic); } } }