Answers for "how to set varibles in c#"

C#
1

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;
Posted by: Guest on February-23-2021
0

C# varible

public varible nameofvarible;//In Unity to esablish varible new slot should appear in the script componit and drag what element you want
Posted by: Guest on November-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language