- Home /
Question by
Aspire-Games-com · Jul 05, 2015 at 05:42 PM ·
c#listsindex
Select other index in list
Hi is it possible find index in a list that isnt a known index for example in his code.
PlayerController.instance.CurrentWeapon = PlayerController.instance.EquipedWeapons[index];
I want the current to switch from the known "index" to the other index as my list is limited to two elements. In essence i want to..
IndexOf(!=knownIndex);
Thanks in advance
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
List/Array should handle another List/Array - Upgrade System - Performance 1 Answer
How do I compare two lists for equality (not caring about order) C# 6 Answers
How to set a specific gameobject in an array false when it collides with a trigger. 1 Answer