Hi, I was just wondering if there was a more elegent way of checking if a whole bunch of if statements are true...
Code:
     
    var unityObjectValue1 = "n", unityObjectValue2 = "i", unityObjectValue3 = "space", unityObjectValue4 = "reg", unityObjectValue5 = "a", unityObjectValue6 = "s", unityObjectValue7 = "space", unityObjectValue8 = "la", unityObjectValue9 = "space", unityObjectValue10 = "homar", unityObjectValue11 = "o", unityObjectValue12 = "n"; 
    
    // this part...
    if( unityObjectValue1 == "n" && 
        unityObjectValue2 == "i" && 
        unityObjectValue3 == "space" && 
        unityObjectValue4 == "reg" && 
        unityObjectValue5 == "a" && 
        unityObjectValue6 == "s" && 
        unityObjectValue7 == "space" && 
        unityObjectValue8 == "la" && 
        unityObjectValue9 == "space" && 
        unityObjectValue10 == "homar" &&
        unityObjectValue11 == "o" && 
        unityObjectValue12 == "n")
    {
        // destroy the mini game trigger object. 
        // exit the mini game. 
        // run the animation. 
        console.log("Matched.");
    } 
    else 
    {
        console.log("Not Matched.");
    }
Happy Yule