void Start() { alpha = 29; myOtherClass = new AnotherClass(); myOtherClass.FruitMachine(alpha, myOtherClass.apples); }
void Start() { alpha = 32; myOtherClass = new AnotherClass(); myOtherClass.FruitMachine(alpha, myOtherClass.raspberries); }
// Start is called before the first frame update void Start() { myOtherClass = new AnotherClass(); myOtherClass.FruitMachine(banana, myOtherClass.apples); myOtherClass.apples = 20; Debug.Log(myOtherClass.apples); }
void Start() { alpha = 32; myOtherClass = new AnotherClass(); myOtherClass.FruitMachine(alpha,myOtherClass.raspberries); }
void Start() { alpha = 29; myOtherClass = new AnotherClass(); myOtherClass.FruitMachine(alpha, myOtherClass.apples); Debug.Log("Alpha is set to: " + alpha); }
void Start() { alpha = 45; // use new class instance myAnotherClass = new AnotherClass(); myAnotherClass.FruitMachine(3, 54); // use new class instance myLoopClass = new ExampleLoopExers(); myLoopClass.Start(); }
void Start() { anotherClass = GetComponent <AnotherClass>(); anotherClass.FruitMachine(alpha, anotherClass.apples); }