Hey doing Card game i encoutered a “problem”. I don’t know how to “shift” objects in array of objects.
Example:
I have 4 objects (Object[0]…]. I want to be able to delete some of objects, and move the rest to the “left”. So if i delete 0 and 1, i want 2 and 3 to become 0 and 1. How can i ASSIGN them to those numbers? I tried doing Object[0] = Object[3]
and so on but it just did nothing. IK Object is taken by Unity, it’s just example name here
Objects are imported properly, I can use and assign their variables etc.
NOTE: Object is object of MyClass, that is C# Script added to component. I get it by (MyClass) SomeIngameObject.GetComponent(typeof(MyClass))
. Any ideas?
If something is wrong, sorry, i write it for like 3rd time, because something is wrong with unity site or my PC