Inheritance: NetworkBehaviour
示例#1
0
 void Start()
 {
     Cursor.visible = false;
     tutoriel = player.GetComponent<Tutoriel>();
     Time.timeScale = 1;
     Inpause = false;
 }
示例#2
0
 private void EnablePanneauTutoriel(bool a_d)
 {
     Tutoriel.SetActive(a_d);
 }
 private void Start()
 {
     instance = this;
     background.SetActive(true);
     tutoWalk.SetActive(true);
 }
示例#4
0
文件: Main.cs 项目: Smlep/Illumnia
 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 !";
         }
     }
 }
示例#5
0
    // 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;
    }
示例#6
0
文件: Menu.cs 项目: Vin57/MoveMan
        private void bt_Tutoriel_Click(object sender, EventArgs e)
        {
            Tutoriel tuto = new Tutoriel();

            tuto.ShowDialog();
        }