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 UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class Enemy : Entity
|
||||
{
|
||||
|
|
@ -14,8 +15,17 @@ public class Enemy : Entity
|
|||
public float strafePercent;
|
||||
private float xSign = -1f;
|
||||
private float ySign = 1f;
|
||||
private void Start()
|
||||
|
||||
[System.Serializable]
|
||||
public class UpgradeDrop
|
||||
{
|
||||
public AbilityUpgrade droppedUpgrade;
|
||||
public float chance;
|
||||
}
|
||||
[Header("Drops")]
|
||||
public List<UpgradeDrop> possibleDrops = new();
|
||||
private void Start()
|
||||
{
|
||||
if (Random.Range(0f, 2f) > 1f)
|
||||
{
|
||||
xSign = -xSign;
|
||||
|
|
@ -61,4 +71,9 @@ public class Enemy : Entity
|
|||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
protected virtual void DropUpgrade()
|
||||
{
|
||||
float random;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue