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