Update and Awake not being called.

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);
	}
}

You should be getting a null reference error, due to calling anim variable in the Rest() function before assigning it with GetComponent. Perhaps you turned off error logging in the console by accident