1234567891011121314151617181920212223 |
- using UnityEngine;
- using System.Collections;
- public class StuckBuff : CraftBuff
- {
- override public void init(GameObject graphic)
- {
- base.init (graphic);
- Craft craft = this.GetComponent<Craft> ();
- craft.StopMove();
- craft.enableMove = false;
- craft.enablePower = false;
- }
-
- public override void end ()
- {
- base.end ();
- Craft craft = this.GetComponent<Craft> ();
- craft.enableMove = true;
- craft.enablePower = true;
- }
- }
|