2023-07-24 16:38:13 +03:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2023-09-05 17:38:11 +03:00
|
|
|
public class BoostZone : MonoBehaviour
|
2023-07-24 16:38:13 +03:00
|
|
|
{
|
|
|
|
[SerializeField]
|
|
|
|
private float _boostAmmount;
|
|
|
|
[SerializeField]
|
|
|
|
private float _boostTime;
|
|
|
|
|
2023-09-05 17:38:11 +03:00
|
|
|
private ShipPathFollower _follower;
|
|
|
|
|
|
|
|
private void Awake()
|
2023-07-24 16:38:13 +03:00
|
|
|
{
|
2023-09-05 17:38:11 +03:00
|
|
|
_follower = FindObjectOfType<ShipPathFollower>();
|
2023-07-24 16:38:13 +03:00
|
|
|
}
|
|
|
|
|
2023-09-05 17:38:11 +03:00
|
|
|
public void UseBoost()
|
2023-07-24 16:38:13 +03:00
|
|
|
{
|
2023-09-18 20:09:22 +03:00
|
|
|
_follower.FastBreak(0.6f);
|
2023-07-24 16:38:13 +03:00
|
|
|
}
|
|
|
|
}
|