Adam Salah 39bffa8c59 projectile revamp + scorpion (#14)
Reviewed-on: #14
Reviewed-by: EliaGingras1 <william-gin1@hotmail.com>
2025-07-29 21:39:18 +00:00

18 lines
393 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class TargetedProjectile : Projectile
{
private Vector2 _endPos;
protected override void Start()
{
base.Start();
_endPos = Target.Position;
}
public Vector2 EndPos { get => _endPos; set => _endPos = value; }
public Entity Target { get => Origin.Enemy;}
}