SpeedDownBulletBuff.cs 359 B

1234567891011121314151617181920
  1. using UnityEngine;
  2. using System.Collections;
  3. public class SpeedDownBulletBuff : BulletBuff
  4. {
  5. public float speed;
  6. override public void end(ITarget target)
  7. {
  8. if(target is Craft)
  9. {
  10. SpeedDownBuff buff = (target as Craft).gameObject.AddComponent<SpeedDownBuff> ();
  11. buff.duration = duration;
  12. buff.speed = speed;
  13. buff.init (graphic);
  14. }
  15. }
  16. }