123456789101112131415161718192021 |
- using UnityEngine;
- using System.Collections;
- public class SpeedUpBuff : CraftBuff
- {
- public float speed;
- override public void init(GameObject graphic)
- {
- base.init (graphic);
- this.GetComponent<Craft> ().modifyMoveSpeed += speed;
- }
- public override void end ()
- {
- base.end ();
- this.GetComponent<Craft> ().modifyMoveSpeed -= speed;
- }
- }
|