StuckBulletBuff.cs 301 B

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