void Awake()
{
// initialize variables
//size = GetComponent<Renderer>().size;
// initially false
santaInSight = false;
gameController = GetComponent<GameController>();
anim = GetComponent<Animator>();
nav = GetComponent<NavMeshAgent>();
col = GetComponent<SphereCollider>();
// Get reference to Santa
santa = GameObject.FindWithTag("Player");
// initially set vision to true
checkVision = true;
// Ignore layer 2. Layer 2 is default layer provided by unity which is Ignore Raycast
layerMask = 1 << 2;
layerMask = ~layerMask;
// initialize ray position
// slightly above ground level
rayPos1 = new Vector3(0, 0.5f, 0);
}