wow
This commit is contained in:
parent
e30de274c8
commit
63e5e950de
1 changed files with 16 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
using Core.Extensions;
|
using Core.Extensions;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
public class Enemy : Entity
|
public class Enemy : Entity
|
||||||
{
|
{
|
||||||
|
|
@ -14,6 +15,15 @@ public class Enemy : Entity
|
||||||
public float strafePercent;
|
public float strafePercent;
|
||||||
private float xSign = -1f;
|
private float xSign = -1f;
|
||||||
private float ySign = 1f;
|
private float ySign = 1f;
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class UpgradeDrop
|
||||||
|
{
|
||||||
|
public AbilityUpgrade droppedUpgrade;
|
||||||
|
public float chance;
|
||||||
|
}
|
||||||
|
[Header("Drops")]
|
||||||
|
public List<UpgradeDrop> possibleDrops = new();
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
if (Random.Range(0f, 2f) > 1f)
|
if (Random.Range(0f, 2f) > 1f)
|
||||||
|
|
@ -61,4 +71,9 @@ public class Enemy : Entity
|
||||||
{
|
{
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual void DropUpgrade()
|
||||||
|
{
|
||||||
|
float random;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue