added debug script to disable enemies
This commit is contained in:
@@ -31,6 +31,10 @@ namespace Beyond
|
||||
|
||||
public override void Awake()
|
||||
{
|
||||
#if ENEMIES_DISABLED && UNITY_EDITOR
|
||||
enabled = false;
|
||||
return;
|
||||
#endif
|
||||
base.Awake();
|
||||
//m_spawned = false;
|
||||
m_spawnData = new SaveData();
|
||||
@@ -54,6 +58,7 @@ namespace Beyond
|
||||
|
||||
public override void Start()
|
||||
{
|
||||
|
||||
base.Start();
|
||||
if (Player.Instance != null)
|
||||
m_distanceFrom = Player.Instance.transform;
|
||||
@@ -111,6 +116,7 @@ namespace Beyond
|
||||
{
|
||||
if (m_prefab == null)
|
||||
return;
|
||||
|
||||
Vector3 pos;
|
||||
const float RAY_OFFSET = 30f;
|
||||
const float Y_OFFSET = .1f;
|
||||
|
||||
Reference in New Issue
Block a user