Пример #1
0
 void Start()
 {
     highScore  = PlayerPrefs.GetInt("highScore", highScore);
     theRope    = GameObject.Find("Rope_Pixel");
     objRope    = theRope.GetComponent <TestRope>();
     numPlayers = PlayerPrefs.GetInt("numPlayers", numPlayers);
     CheckNumPlayers();
     StartWait();
 }
Пример #2
0
 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>();
 }
Пример #3
0
 // 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();
 }