daily pastebin goal
49%
SHARE
TWEET

example 2 i mentioned

a guest Feb 14th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object previousObj = alreadyCreatedObj;
  2.  
  3. for (int i=0; i < objectCount; i++)
  4. {
  5.     object newObj = createInstance(objectPrefab);
  6.    
  7.     newObj.linkToPrevious = previousObj;
  8.  
  9.     if(i < objectCount - 1)
  10.     {
  11.         previousObj = newObj;
  12.     }
  13.     else
  14.     {
  15.         endObj.linkToPrevious = newObj;
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top