rabidus-test/Assets/Scripts/BoostZone.cs

20 lines
446 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BoostZone : MonoBehaviour
{
[SerializeField]
private float _breakMultiplier = 0.6f;
public void UseBoost(Collider collider)
{
collider.GetComponent<ShipPathFollower>().FastBreak(_breakMultiplier);
}
public void UseBoost2(Collider collider)
{
collider.GetComponent<ShipPathFollower>().FastBoost(50);
}
}