StuckBuff.cs 436 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. using System.Collections;
  3. public class StuckBuff : CraftBuff
  4. {
  5. override public void init(GameObject graphic)
  6. {
  7. base.init (graphic);
  8. Craft craft = this.GetComponent<Craft> ();
  9. craft.StopMove();
  10. craft.enableMove = false;
  11. craft.enablePower = false;
  12. }
  13. public override void end ()
  14. {
  15. base.end ();
  16. Craft craft = this.GetComponent<Craft> ();
  17. craft.enableMove = true;
  18. craft.enablePower = true;
  19. }
  20. }