Added a list of traits to the enemies that the game will use to determine certain actions. - The trait to have a 25% chance to dodge projectiles has been implemented.
17 lines
259 B
C#
17 lines
259 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public struct OpponentTrait
|
|
{
|
|
public enum Trait
|
|
{
|
|
dodgeProjectiles,
|
|
spawnsEnemiesOnDeath
|
|
}
|
|
|
|
public Trait traitName;
|
|
}
|