24 lines
444 B
C#
24 lines
444 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BoostZone : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private float _boostAmmount;
|
|
[SerializeField]
|
|
private float _boostTime;
|
|
|
|
private ShipPathFollower _follower;
|
|
|
|
private void Awake()
|
|
{
|
|
_follower = FindObjectOfType<ShipPathFollower>();
|
|
}
|
|
|
|
public void UseBoost()
|
|
{
|
|
_follower.FastBreak(0.6f);
|
|
}
|
|
}
|