Enemy spawner

This commit is contained in:
2023-10-22 16:30:29 +02:00
parent 7ebff78708
commit ac4cbfa911
4 changed files with 154 additions and 2 deletions
+8 -1
View File
@@ -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>();