Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

varibles c#

// 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;
 
PREVIOUS NEXT
Tagged: #varibles
ADD COMMENT
Topic
Name
1+2 =