public void Add(int i) { Debug.Log("before : " + amount); amount += i; Debug.Log("after : " + amount); } }