25 lines
481 B
C#
25 lines
481 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BoostZone : TriggerZone
|
|
{
|
|
[SerializeField]
|
|
private float _boostAmmount;
|
|
[SerializeField]
|
|
private float _boostTime;
|
|
|
|
protected override void InZone()
|
|
{
|
|
base.InZone();
|
|
_ship.StopBoost();
|
|
_ship.AddBoost(_boostAmmount, _boostTime);
|
|
}
|
|
|
|
protected override void OutZone()
|
|
{
|
|
base.OutZone();
|
|
//_ship.StopBoost();
|
|
}
|
|
}
|