Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# how to check if a array bool is all true

 private bool IsAllMissionComplete() {
     for ( int i = 0; i < MissionList.Length; ++i ) {
         if ( MissionList[ i ].isComplete == false ) {
           return false;
         }
     }
 
     return true;
 }

//raadgames
 
PREVIOUS NEXT
Tagged: #check #array #bool #true
ADD COMMENT
Topic
Name
4+1 =