Re-added the "GhostOpponent" class to determine if the enemy is capable of dodging projectiles.
15 lines
298 B
C#
15 lines
298 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GhostOpponent : Opponent
|
|
{
|
|
|
|
public bool dodgedProjectile()
|
|
{
|
|
System.Random random = new System.Random();
|
|
if(random.Next(0, 99) > 25) return false;
|
|
else return true;
|
|
}
|
|
}
|