Advertisement
Guest User

Untitled

a guest
May 27th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class variablesyFunciones : MonoBehaviour {
  5.  
  6. // Use this for initialization
  7. void Start ()
  8. {
  9. int vidasRestantes = 5;
  10. vidasRestantes=multiplicarPor2(vidasRestantes);
  11. Debug.Log(vidasRestantes);
  12. saludo("Arturo689x");
  13.  
  14. }
  15.  
  16. int multiplicarPor2(int numero)
  17. {
  18. int retornable;
  19. retornable = numero * numero;
  20. return retornable;
  21. }
  22.  
  23. void saludo(string nombre)
  24. {
  25. Debug.Log(nombre);
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement