using UnityEngine; using System.Collections; public class MyScriptFile : MonoBehaviour { public string PlayerName = ""; public int PlayerHealth = 100; public Vector3 Position = Vector3.zero; // Use this for initialization void Start () {} // Update is called once per frame void Update () { //Check player health - the braces symbol {} are option for one-line if-statements if(PlayerHealth == 100) { Debug.Log ("Player has full health"); } } }