Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class variablesyFunciones : MonoBehaviour {
- // Use this for initialization
- void Start ()
- {
- int vidasRestantes = 5;
- vidasRestantes=multiplicarPor2(vidasRestantes);
- Debug.Log(vidasRestantes);
- saludo("Arturo689x");
- }
- int multiplicarPor2(int numero)
- {
- int retornable;
- retornable = numero * numero;
- return retornable;
- }
- void saludo(string nombre)
- {
- Debug.Log(nombre);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement