- Home /
.Shift() error
So I have set up an array of transforms and have it so when the player is within a distance of the first element it then plays a sound.
What i want then to do is remove the first element and then move the rest up so that element (1) becomes element(0). I tried using the .Shift() function but I get an error saying that: Assets/Scripts/Turns.js(20,23): BCE0019: 'Shift' is not a member of 'UnityEngine.Transform[]'.
I plan to then evolve it to say that if element (0) and element(1) are within a distance then play both sounds one after the other then remove them both a promote the rest accordingly
can this be done?
Your answer
Follow this Question
Related Questions
Type casting error while instantiating. 1 Answer
Multiple boards 0 Answers
problem with selecting characters script 0 Answers
Iterating a GO through an array of transform positions 0 Answers
Move object in array of objects 0 Answers