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