Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        playerscript = GetComponent <SauvegardeTest> ();
        modePause    = false;

        Time.timeScale = 1;
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        sauvegardetest   = player.GetComponent <SauvegardeTest> ();
        menupausescript  = player.GetComponent <MenuPause> ();
        movecamerascript = lacamera.GetComponent <MoveCameraNEW> ();
        rbplayer         = player.GetComponent <Rigidbody2D> ();
        srplayer         = player.GetComponent <SpriteRenderer> ();
        srplayercheat    = playerCheat.GetComponent <SpriteRenderer> ();

        srplayer.enabled = false;

        StartCoroutine(StartDelay());

        //anim = countdown.GetComponent<Animator> ();
    }
Ejemplo n.º 3
0
    void Start()
    {
        PowerUp_SoDUI.enabled          = false;
        PowerUp_InvicibilityUI.enabled = false;
        BeakyGotAPowerUp = false;

        spriterendererpowerup = GetComponent <SpriteRenderer> ();
        collider2dpowerup     = GetComponent <Collider2D> ();

        scriptplayer        = player.GetComponent <SauvegardeTest> ();
        movecameranewscript = laCamera.GetComponent <MoveCameraNEW> ();
        gofasterscript      = goFaster.GetComponent <GoFaster> ();

        animMiniBeakyUI   = miniBeakyUI.GetComponent <Animator> ();
        animpowerupcanvas = powerUpCanvas.GetComponent <Animator> ();

        //TrigDestruction.SetActive (false);
    }
Ejemplo n.º 4
0
 void Start()
 {
     lemenupause  = player.GetComponent <MenuPause> ();
     playerscript = player.GetComponent <SauvegardeTest> ();
 }
Ejemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        sauvegardetest = player.GetComponent <SauvegardeTest> ();

        downTheCave = false;
    }
Ejemplo n.º 6
0
    //Changer le != "Player" par un Tag Décor pour les éléments du décor"
//	void OnCollisionEnter2D (Collision2D col){					// À REMETTRE SI LES ÉLÉMENTS DU DÉCOR FONT APPARAÎTRE CA AUSSI
//		if (col.gameObject.tag != "Player") {
//			NumberOfImages = Random.Range (1, 8);
//			DammageCheck ();
//		}
//	}


    void Start()
    {
        playerscript = player.GetComponent <SauvegardeTest> ();
    }