Last active
August 29, 2015 14:07
-
-
Save enricllagostera/a5dcfc737e54cbd73ef1 to your computer and use it in GitHub Desktop.
Ex. Soma com exibição condicional - http://progjogos.wordpress.com/2014/10/20/somacondicional/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class ExSomaCondicional : MonoBehaviour | |
{ | |
public float a; | |
public float b; | |
void Start () | |
{ | |
float res = a + b; | |
if (res >= 200) | |
{ | |
print(res); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment