varibles csharp

Code Example - varibles csharp

                
                        // A varible can either be public or private, public lets you use the varible in a different script
// Private make you only use the varible in the same script

public int Example = 5;  // These are for full numbers such as 2 or 7
private int Example = 5;

public bool Example = 5; // These are for Boolean values
private bool Example = 5;

public float Example = 5.3f; // These are for floating numbers such as 20.0f
private float Example = 5.3f;