Ich kündige!
This commit is contained in:
@ -189,19 +189,22 @@ public class NPCAnimationController : MonoBehaviour
|
||||
animator.SetTrigger("Walk");
|
||||
yield return new WaitUntil(() => animator.GetCurrentAnimatorStateInfo(0).IsName("Walk"));
|
||||
MoveTo(dancePlace.position);
|
||||
yield return new WaitUntil(() => agent.remainingDistance <= agent.stoppingDistance);
|
||||
animator.ResetTrigger("Walk");
|
||||
yield return new WaitUntil(() =>
|
||||
{
|
||||
Debug.Log(agent.remainingDistance);
|
||||
return agent.remainingDistance <= agent.stoppingDistance;
|
||||
});
|
||||
animator.SetTrigger("TooMuchCaffein");
|
||||
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
yield return new WaitWhile(() => Developer.IsOvercaffeinated);
|
||||
|
||||
animator.ResetTrigger("TooMuchCaffein");
|
||||
animator.SetTrigger("Walk");
|
||||
yield return new WaitUntil(() => animator.GetCurrentAnimatorStateInfo(0).IsName("WalkBack"));
|
||||
MoveTo(workPosition.position);
|
||||
yield return new WaitUntil(() => agent.remainingDistance <= agent.stoppingDistance);
|
||||
transform.rotation = workPosition.rotation;
|
||||
animator.ResetTrigger("Walk"); // Setze den Lauf-Trigger zur<75>ck
|
||||
animator.SetTrigger("SitDown");
|
||||
yield return new WaitUntil(() => animator.GetCurrentAnimatorStateInfo(0).IsName("Sit"));
|
||||
yield return StartCoroutine(FadeLayerWeight(animator.GetLayerIndex("Typing"), 1, 1f));
|
||||
@ -212,32 +215,5 @@ public class NPCAnimationController : MonoBehaviour
|
||||
private void MoveTo(Vector3 destination)
|
||||
{
|
||||
agent.destination = destination;
|
||||
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
// Pr<50>ft, ob der Buchstabe 'C' gedr<64>ckt wurde
|
||||
if (Input.GetKeyDown(KeyCode.C))
|
||||
{
|
||||
DrinkCoffee();
|
||||
}
|
||||
|
||||
// Pr<50>ft, ob der Buchstabe 'T' gedr<64>ckt wurde
|
||||
if (Input.GetKeyDown(KeyCode.T))
|
||||
{
|
||||
GoToToilet();
|
||||
}
|
||||
|
||||
// Pr<50>ft, ob der Buchstabe 'M' gedr<64>ckt wurde
|
||||
if (Input.GetKeyDown(KeyCode.M))
|
||||
{
|
||||
GettingMad();
|
||||
}
|
||||
// Pr<50>ft, ob der Buchstabe 'C' gedr<64>ckt wurde
|
||||
if (Input.GetKeyDown(KeyCode.O))
|
||||
{
|
||||
CaffeinOverdose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user