public override void Start(GameObject target, Transform sourceTransform) { this.speedFactor = 30f; this.timeSpan = 15f; this.target = target; this.manipulation = new Manipulation() { Type = ManipulationType.ADD, Value = speedFactor }; target.GetComponent<global::Player>().speed.AddManipulation(manipulation); Invoke("StopBoost", timeSpan); }
public void RemoveManipulation(Manipulation manipulation) { this._manipulations.Remove(manipulation); }
public void AddManipulation(Manipulation manipulation) { this._manipulations.Add(manipulation); }