24 lines
440 B
C#
24 lines
440 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.FastBoost();
|
|
}
|
|
}
|