// Sets the new destination of the player if they are not already at that destination point public void SetPlayerDestination(Intern intern, bool reprimanding) { if (transform.position != GetInternDestination(intern)) { foreach (InternBehaviour ib in GameObject.FindObjectsOfType <InternBehaviour>()) { if (ib.internName == intern) { currentIntern = ib; } } loopingAudioSource.enabled = true; loopingAudioSource.Play(); isMoving = true; destination = GetInternDestination(intern); stats.isHelping = false; stats.isReprimanding = reprimanding; } }
public bool IsRepremandingIntern(InternBehaviour internB) { return(stats.isReprimanding && currentIntern == internB && transform.position == destination); }
public bool IsHelpingIntern(InternBehaviour internB) { return(stats.isHelping && currentIntern == internB); }