Added basic enemy

Does not attack the player currently
This commit is contained in:
Pasha Bibko
2025-11-18 15:52:13 +00:00
parent 321dc1f149
commit 0dce94924c
10 changed files with 234 additions and 8 deletions

View File

@@ -1,11 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class PlayerController : OrbitalPositionBehaviour
{
float m_StartPosition;
public GameObject m_EnemyPrefab;
public override void OnStart()
{
@@ -18,5 +16,10 @@ public class PlayerController : OrbitalPositionBehaviour
{
m_OrbitalPosition.pRing += 1;
}
if (Input.GetKey(KeyCode.E))
{
Instantiate(m_EnemyPrefab);
}
}
}