Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Frogspasm on April 11, 2015, 04:05:26 AM

Title: ArrayList Shift Left/Right
Post by: Frogspasm on April 11, 2015, 04:05:26 AM
Hi everyone,

I need to do a circular shift on an array list. Shift left deletes the first entry then copies it to the end. Shift right deletes the last entry and copies it to the start.

I used ArrayListShuffle as a starting point and modified it.
It seems to work fine. I've only tested it with a boolean array list, but it should work for any kind. I'm a beginner at c#, so if anyone has another method that would be more efficient, feel free to update it.

Cheers,
Mike D.