Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void EatFrom(GameObject tanda)
- {
- TandaStats stats = tanda.GetComponent<TandaStats>();
- bool eaten = stats.eatFood(CuantoCome);
- eatingSound.Play();
- if (!eaten)
- {
- Debug.Log("ME HE QUEDADO CON HAMBRE CHACHO");
- }
- float VelocidadTanda = tanda.GetComponent<MovementFood>().resistorValue;
- if ( VelocidadTanda == porcentajeVelocidadCome)
- {
- Debug.Log("BUENA VELOCIDAD");
- }
- else if ( VelocidadTanda<porcentajeVelocidadCome)
- {
- Debug.Log("DEMASIADO LENTO, ME ABURRO");
- }
- else
- {
- Debug.Log("DEMASIADO RAPIDO, ESTALLO ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement