Exemple #1
0
 // 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;
     }
 }
Exemple #2
0
 public bool IsRepremandingIntern(InternBehaviour internB)
 {
     return(stats.isReprimanding && currentIntern == internB && transform.position == destination);
 }
Exemple #3
0
 public bool IsHelpingIntern(InternBehaviour internB)
 {
     return(stats.isHelping && currentIntern == internB);
 }