Example #1
0
    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> ();
    }
Example #2
0
    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);
         * }
         */
    }