Added basic enemy
Does not attack the player currently
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user