public class Leaningscript : MonoBehaviour
public int myNumber = 10;
// Use this for initialization
void Start ()
Debug.Log(2 + 9);//non varible should show 11
Debug.Log(11 + myNumber); //using varibles should show 21
// Update is called once per frame
void Update ()
now the line that should appear as 21 outputs as 20...
i found out that if i change the variable in the code itself it doesnt change...
but if i change it in the inspector panel it will change...