Example #1
0
    // Use this for initialization
    void Start()
    {
        myJob        = new threadexample();
        myJob.InData = new Vector3[10];


        myJob.Start();                          // Don't touch any data in the job class after you called Start until IsDone is true.
    }
Example #2
0
		// Use this for initialization
		void Start ()
		{
				myJob = new threadexample ();
				myJob.InData = new Vector3[10];

		
				myJob.Start (); // Don't touch any data in the job class after you called Start until IsDone is true.

		}
Example #3
0
		void Update ()
		{
				if (myJob != null) {
						if (myJob.Update ()) {
								// Alternative to the OnFinished callback
								myJob = null;
						}
				}
		}
Example #4
0
 void Update()
 {
     if (myJob != null)
     {
         if (myJob.Update())
         {
             // Alternative to the OnFinished callback
             myJob = null;
         }
     }
 }