// Use this for initialization void Start() { scores = GameObject.Find("guessKeeper"); gk = scores.GetComponent <guessKeeper>(); controlCube = GameObject.Find("Card Controller"); cc = controlCube.GetComponent <CardController>(); }
void Awake() { // List<int> yearlist = new List<int> {1766,1795,1809,1812,1825,1869,1873,1918,1921,1924,1932,1934,1943,1945,1946,1950,1952,1961,1963,1966,1969,1971,1972,1989,1995,1998,1999,2006,2007,2009,2012,2013}; // List<int> listOfAvailableDates = new List<int> {1766,1795,1809,1812,1825,1869,1873,1918,1921,1924,1932,1934,1943,1945,1946,1950,1952,1961,1963,1966,1969,1971,1972,1989,1995,1998,1999,2006,2007,2009,2012,2013}; // List<int> cardsOnTimeline = new List<int> {}; // List<int> handOfCards = new List<int> {}; scores = GameObject.Find("guessKeeper"); gk = scores.GetComponent <guessKeeper>(); gk.goodGuesses = 0; }
// Use this for initialization void Start() { scores = GameObject.Find("guessKeeper"); gk = scores.GetComponent <guessKeeper>(); audiowrong = GetComponentInParent <AudioSource>(); //STEP 1: Grab 4 Cards for Timeline start SetupTimeline(); //STEP 2: Shuffle the remaining available Cards! listOfAvailableDates = ShuffleCards(listOfAvailableDates); //STEP 3: Shuffle out 5 Cards from the shuffledyears SetupHand(5); CardstoHand(); CardtoTimeline(); }
// Use this for initialization void Start() { scores = GameObject.Find("guessKeeper"); gk = scores.GetComponent <guessKeeper>(); correctGuesses = gk.goodGuesses.ToString(); }