void Start() { if (currentPlatformAndroid == true) { Debug.Log("Android"); } else { Debug.Log("Windows"); } myrigidbody = GetComponent <Rigidbody2D>(); timer = delayTimer; BlockO = GameObject.FindGameObjectWithTag("Stop"); BM = BlockO.GetComponent <Bmove> (); }
void Start() { //myrigidbody = GetComponent<Rigidbody2D>(); BlockO = GameObject.FindGameObjectWithTag("Stop"); // Explode = GameObject.Find ("Particules"); player = GameObject.Find("Player"); Spawn = GameObject.Find("SpawnPoint"); bC = player.GetComponent <Rigidbody2D> (); Mp = player.GetComponent <PlayerMovement> (); Bm = BlockO.GetComponent <Bmove> (); Scor = player.GetComponent <ScoreManeger> (); //Timer = delayTimer; //Explode.GetComponent<ParticleSystem> ().enableEmission = false; // Application.LoadLevel (2); /*if (PlayerPrefs.GetFloat ("Highscore") < Scor.ScoreCount) * { * PlayerPrefs.SetFloat ("HighScore", Scor.ScoreCount); * } */ }