Skip to content

Instantly share code, notes, and snippets.

@enricllagostera
Last active August 29, 2015 14:07
Show Gist options
  • Save enricllagostera/a5dcfc737e54cbd73ef1 to your computer and use it in GitHub Desktop.
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/
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