void Start()
    {
        alpha = 29;

        myOtherClass = new AnotherClass();
        myOtherClass.FruitMachine(alpha, myOtherClass.apples);
    }
예제 #2
0
    void Start()
    {
        alpha = 29;

        myOtherClass = new AnotherClass();
        myOtherClass.FruitMachine(alpha, myOtherClass.apples);
    }
예제 #3
0
    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);
 }
예제 #5
0
    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);
    }
예제 #7
0
	void Start() {
		alpha = 45;

		// use new class instance

		myAnotherClass = new AnotherClass();
		myAnotherClass.FruitMachine(3, 54);

		// use new class instance 
		myLoopClass = new ExampleLoopExers();
		myLoopClass.Start();
	}
예제 #8
0
 void Start()
 {
     anotherClass = GetComponent <AnotherClass>();
     anotherClass.FruitMachine(alpha, anotherClass.apples);
 }