22 lines
389 B
C#
22 lines
389 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Enemy : TriggerZone
|
|
{
|
|
[SerializeField]
|
|
[Range(0, 1)]
|
|
private float _velocityMultiplier;
|
|
|
|
protected override void InZone()
|
|
{
|
|
base.InZone();
|
|
_ship.FastBreak(_velocityMultiplier);
|
|
}
|
|
|
|
protected override void OutZone()
|
|
{
|
|
base.OutZone();
|
|
}
|
|
}
|