Enemy spawner
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.Collections;
|
||||
using Unity.VisualScripting.FullSerializer;
|
||||
using UnityEngine;
|
||||
|
||||
[
|
||||
@@ -18,6 +17,14 @@ public class Ennemy : MonoBehaviour
|
||||
|
||||
[SerializeField] private GameObject _orb;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (transform.parent != null)
|
||||
{
|
||||
transform.parent = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_sr = GetComponent<SpriteRenderer>();
|
||||
|
||||
Reference in New Issue
Block a user