Move Cards Quarter to the Bottom of the Screen


GameObject newCard = DealCard();
// check card is null or not
if (newCard == null) {
Debug.Log(“Out of Cards”);
showReset = true;

//newCard.transform.position =;
newCard.transform.position = new Vector3((float)cardsDealt / 4, (float)cardsDealt / -4, (float)cardsDealt / -4); // place card 1/4 up on all axis from last
hand.Add(newCard); // add card to hand
cardsDealt ++;

Generate Random Numbers without Repeating


void Start()
//having an int Array of 10 members
int [] numbers = new int[10];
//using a string variable to keep record of the used numbers
string usedNumbers =”-”;
//cycle to get 10 random numbers
for (int i = 0 ; i<10; i++)
//get a random number between 0 – 120, 0 and 120 included on the random numbers
int randomNumber = Random.Range(0,121);
//Checking if the random number you get is unique, if you already have it in the string means that this random number is repeated, the “-X-” is to make the difference between the numbers, like -1- from -11-, if you dont have the “-X-” the 1 is in 21 and would be a “repeated” number
//if a number is repeated, then get a new random number
randomNumber = Random.Range(0,121);
usedNumbers+= randomNumber.ToString()+”-”;
numbers[i] = randomNumber;

UCSC ODBC Connection Strings on Web.config


Add SCSU Genome ODBC Connection to web.config

–I Used the $ for < since I think the code was preventing the blob post from updating correctly
$add name=”MySQL Data Provider” invariant=”MySql.Data.MySqlClient2″ description=”.Net Framework Data Provider for MySQL” type=”MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=, Culture=neutral, PublicKeyToken=c5687fc88969c44d” /$