unity3d multi threading helper class with two examples