Skip to content

Instantly share code, notes, and snippets.

View olajawon's full-sized avatar

olajawon

View GitHub Profile
@olajawon
olajawon / gist:8172970df9708ce8d7abb1e38956ed6f
Created December 15, 2018 19:58
My Enemy AI - So far i have my enemy chase me and face me, I want it to drain my health when it gets close.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class EnemyController : MonoBehaviour {
public float lookRadius = 10f;
Transform target;