Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1.     private void EatFrom(GameObject tanda)
  2.     {
  3.         TandaStats stats = tanda.GetComponent<TandaStats>();
  4.         bool eaten = stats.eatFood(CuantoCome);
  5.         eatingSound.Play();
  6.  
  7.         if (!eaten)
  8.         {
  9.             Debug.Log("ME HE QUEDADO CON HAMBRE CHACHO");
  10.         }
  11.  
  12.         float VelocidadTanda = tanda.GetComponent<MovementFood>().resistorValue;
  13.         if ( VelocidadTanda  == porcentajeVelocidadCome)
  14.         {
  15.             Debug.Log("BUENA VELOCIDAD");
  16.         }
  17.         else if ( VelocidadTanda<porcentajeVelocidadCome)
  18.         {
  19.             Debug.Log("DEMASIADO LENTO, ME ABURRO");
  20.         }
  21.         else
  22.         {
  23.             Debug.Log("DEMASIADO RAPIDO, ESTALLO ");
  24.         }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement