void Start() { Cursor.visible = false; tutoriel = player.GetComponent<Tutoriel>(); Time.timeScale = 1; Inpause = false; }
private void EnablePanneauTutoriel(bool a_d) { Tutoriel.SetActive(a_d); }
private void Start() { instance = this; background.SetActive(true); tutoWalk.SetActive(true); }
void Update() { try { player = GameObject.FindGameObjectsWithTag("Player"); tutoriel = player[0].GetComponent<Tutoriel>(); } catch { } if (Input.GetKey(KeyCode.Escape)) { if (Time.timeScale != 0) { Inpause = true; Cursor.visible = true; Time.timeScale = 0; Buttonquit.gameObject.SetActive(true); Buttonrestart.gameObject.SetActive(true); Buttonresume.gameObject.SetActive(true); Buttonoption.gameObject.SetActive(true); // yourbuttonresumetext = Buttonresume.transform.FindChild("Text").GetComponent<Text>(); // yourbuttonresumetext.text = "Reprendre !"; } } }
// Use this for initialization void Start() { this.nearElement = null; this.character = GetComponentInChildren<CharacterCollision>().gameObject; this.social = GetComponent<Social_HUD>(); this.attack = TypeAttack.None; this.syncCharacter = gameObject.GetComponent<SyncCharacter>(); if (!isLocalPlayer) return; this.cam = GetComponentInChildren<Camera>().gameObject; this.inventaire = GetComponent<Inventory>(); this.menu = GetComponent<Menu>(); this.controller = GetComponent<Controller>(); this.sucHUD = GetComponent<Success_HUD>(); this.cristalHUD = GetComponent<Cristal_HUD>(); this.tutoriel = GetComponent<Tutoriel>(); this.anim = gameObject.GetComponent<Animator>(); this.validplace = true; this.lastvalidplace = true; this.soundAudio = gameObject.GetComponent<Sound>(); Cursor.visible = false; seeGUI = true; }
private void bt_Tutoriel_Click(object sender, EventArgs e) { Tutoriel tuto = new Tutoriel(); tuto.ShowDialog(); }