Guest User

Untitled

a guest
Apr 13th, 2019
26
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int[] x = new int[5];
  2. MonoBehaviourClass[] stuff;
  3. void DoShit()
  4. {
  5. for (int i = 0; i < array.Length; i++)
  6. {
  7. int temp = 25;
  8. temp -= Unity.Random.Range(0,20);
  9. }
  10. SubmitShit();
  11. }
  12.  
  13. void SubmitShit()
  14. {
  15. for (int i = 0; i < array.Length; i++)
  16. {
  17. stuff[i].variable = x[i];
  18. }
  19. }
RAW Paste Data