PersonSight.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        // Set the animator parameter "SantaInSight" to whether if santa is currently in sight.
        anim.SetBool("SantaInSight", santaInSight);

        // Call update to suspicion meter if santa is seen
        if (santaInSight)
            StartCoroutine(PersonSeen());
    }