
Learning C#
I've always wanted to learn to program in the "C" family. C# is very close to JavaScript, and no longer does one have to lift the hefty Visual Studio pricetag to lean it. When you add in my years of JavaScript and Flash, this should be ...fun?
There is nothing I love more than a good Multidimensional Array. So it is one of the first things I wanted to figure out.
multiarr.cs
// set the var
public string[][] pass = new string[2][];
// add values
pass[0] = new string[] { "book", "librarian", "quiet","read" };
pass[1] = new string[] { "dog","cop","cuffs","coffee","doughnut","butts" };
// grab a random value
passUse = pass[level - 1][Random.Range(0, pass[level - 1].Length)];
Debug.LogWarning("Shhhh, the password is: " + passUse);