public void Despawn(EnemyInstance target) { if (this == target) { Destroy(gameObject); } }
public void TeleportToStart(EnemyInstance target) { if (this == target) { var spawnpointPosition = _spawnpoint.position; transform.position = new Vector3(spawnpointPosition.x, spawnpointPosition.y); SetSpawnPoint(_spawnpoint, true); } }
public virtual void ApplySpecialEffect(Scrips.EnemyData.Instances.EnemyInstance target) { }