- 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<StuckBuff> ();
- buff.duration = duration;
- buff.init (graphic);
- }
- }
- }
|