void Start() { first = 58; myOtherClass = new Anotherclass(); myOtherClass.FruitMachine(first, myOtherClass.grapes); Debug.Log("First is set to: " + first); }