rabidus-test/Assets/Enemy.cs

22 lines
389 B
C#
Raw Normal View History

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();
}
}