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