Access a few of my projects written in the c programming language.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeleeEnemy : Enemy
{
public float stopDistance = 5f;
public float retreatDistance = 2f;
public float outOfDistance = 20; // if distance is greater than this , do nothing
public float attackTime;
public float attackSpeed;
public float dist;
public override void Start(){
base.Start();
attackTime = Random.Range(1,attackTime);
}
Comments