for(int i = 0; i<cube.Length; i++){ cubex[i]+=Mathf.Sin(deg2rad)*speed; cubey[i]+=Mathf.Cos(deg2rad)*speed; }