private void Start() { stressScript = GetComponent <IStressable>(); worker = GetComponent <CoffeeWorker>(); worker.OnSpeedMultiplierChanged += ControllSystem; worker.OnWorkDone += SpawnAnnotation; worker.OnWorkDone += PlayWorkDoneSound; worker.OnWorkStarted += PlayWorkSound; stressScript.OnStressOut += PlayRageSound; }
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; }