I have this script which is completely fine and stuff, but does not call Update and Awake voids, it only calls voids when they are called manually from other scripts (for example “MoveToPlayer” which is called from the enemy area script)
//removed all stuff not related to the answer since I am really careful when sharing my scripts since I dont want bad people to steal it
using UnityEngine;
using System.Collections;
public class basicEnemy : MonoBehaviour {
private Animator anim;
void Awake()
{
Rest();
anim = gameObject.GetComponentInChildren<Animator>();
}
public void Rest ()
{
anim.SetBool ("walking", false);
}
}