void Start() { highScore = PlayerPrefs.GetInt("highScore", highScore); theRope = GameObject.Find("Rope_Pixel"); objRope = theRope.GetComponent <TestRope>(); numPlayers = PlayerPrefs.GetInt("numPlayers", numPlayers); CheckNumPlayers(); StartWait(); }
void Start() { //Dog will jump a random number of times between 1 and 10 jumps = Random.Range(2, 11); thePlayer = GameObject.Find("Player"); objPlayer = thePlayer.GetComponent <PlayerController>(); theRope = GameObject.Find("Rope_Pixel"); objRope = theRope.GetComponent <TestRope>(); }
// Use this for initialization void Start() { highScoreP2 = PlayerPrefs.GetInt("highScoreP2", highScoreP2); theRope = GameObject.Find("Rope_Pixel"); objRope = theRope.GetComponent <TestRope>(); thePlayer = GameObject.Find("Player"); objPlayer = thePlayer.GetComponent <PlayerController>(); StartWait(); }