Esempio n. 1
0
 private void Start()
 {
     stressScript = GetComponent <IStressable>();
     worker       = GetComponent <CoffeeWorker>();
     worker.OnSpeedMultiplierChanged += ControllSystem;
     worker.OnWorkDone        += SpawnAnnotation;
     worker.OnWorkDone        += PlayWorkDoneSound;
     worker.OnWorkStarted     += PlayWorkSound;
     stressScript.OnStressOut += PlayRageSound;
 }
Esempio n. 2
0
 private void Start()
 {
     worker = GetComponent <CoffeeWorker>();
     worker.OnWorkStarted            += WorkStartedHandler;
     worker.OnWorkDone               += WorkDoneHandler;
     worker.OnGreetCustomer          += GreetHandle;
     worker.OnPassedCofee            += GreetHandle;
     worker.OnSpeedMultiplierChanged += ChangeAnimatorSpeed;
     //worker.OnFreeLine += IdleHandler;
     //worker.OnGreetCustomer += GreetHandle;
 }