예제 #1
0
 // Use this for initialization
 void Start()
 {
     SMParametre.Parametre param = SMParametre.Parametre.Load();
     touche         = param.Key ["Interact"];
     this._g        = this.gameObject;
     this.animation = this.gameObject.GetComponentInChildren <Animation>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     param = SMParametre.Parametre.Load();
     param.Apply();
     Sound.value = param.VolumeSonore;
     Sound.onValueChanged.AddListener(Change);
 }
예제 #3
0
 public void OnClickDelete()
 {
     SaveData.SaveData.DeleteAll();
     SMParametre.Parametre param = SMParametre.Parametre.Load();
     param.Apply();
     param.Save();
     mixer.SetFloat("Main", param.VolumeSonore);
 }
예제 #4
0
        public static Parametre Load()
        {
            Parametre p = SaveData.SaveData.GetObject <Parametre>("Parametre");

            if (p == null)
            {
                return(new Parametre());
            }
            return(p);
        }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     param = SMParametre.Parametre.Load();
     param.Apply();
     Freq.value      = param.Frequency == 60 ? 1 : 0;
     Quality.value   = param.Quality;
     Resolu.value    = param.Resolution;
     fullscreen.isOn = param.FullScreen;
     Apply.onClick.AddListener(Save);
 }
예제 #6
0
    // Use this for initialization
    void Start()
    {
        param = SMParametre.Parametre.Load();
        param.Apply();

        UpButton       = Up.GetComponentInChildren <Button>();
        DownButton     = Down.GetComponentInChildren <Button>();
        RightButton    = Right.GetComponentInChildren <Button>();
        LeftButton     = Left.GetComponentInChildren <Button>();
        RunButton      = Run.GetComponentInChildren <Button>();
        JumpButton     = Jump.GetComponentInChildren <Button>();
        InteractButton = Interact.GetComponentInChildren <Button>();
        AttackButton   = Attack.GetComponentInChildren <Button>();

        UpText       = UpButton.gameObject.GetComponentInChildren <Text>();
        DownText     = DownButton.gameObject.GetComponentInChildren <Text>();
        LeftText     = LeftButton.gameObject.GetComponentInChildren <Text>();
        RightText    = RightButton.gameObject.GetComponentInChildren <Text>();
        RunText      = RunButton.gameObject.GetComponentInChildren <Text>();
        JumpText     = JumpButton.gameObject.GetComponentInChildren <Text>();
        AttackText   = AttackButton.gameObject.GetComponentInChildren <Text>();
        InteractText = InteractButton.gameObject.GetComponentInChildren <Text>();

        Sensi.value = param.Sensi;
        Sensi.onValueChanged.AddListener(Change);
        ShowKey();

        this.gameObject.GetComponent <Button>().onClick.AddListener(ResetCurrentKey);
        UpButton.onClick.AddListener(ClickButtonUp);
        DownButton.onClick.AddListener(ClickButtonDown);
        LeftButton.onClick.AddListener(ClickButtonLeft);
        RightButton.onClick.AddListener(ClickButtonRight);
        RunButton.onClick.AddListener(ClickButtonRun);
        JumpButton.onClick.AddListener(ClickButtonJump);
        InteractButton.onClick.AddListener(ClickButtonInteract);
        AttackButton.onClick.AddListener(ClickButtonAttack);
        ResetButton.onClick.AddListener(ClickButtonReset);
    }
예제 #7
0
    // Use this for initialization
    void Start()
    {
        //Application.LoadLevel(1);
        Cursor.visible   = true;
        Cursor.lockState = CursorLockMode.None;
        string newnext = SaveData.SaveData.GetString("Loader.Next");

        if (newnext == "" || newnext == null)
        {
            Next = NextDefault;
        }
        else
        {
            Next = newnext;
        }
        SaveData.SaveData.DeleteKey("Loader.Next");
        if (newnext == "")
        {
            param = SMParametre.Parametre.Load();
            param.Apply();
        }
        StartCoroutine(LoadYourAsyncScene());
    }
예제 #8
0
 // Use this for initialization
 void Start()
 {
     SMParametre.Parametre param = SMParametre.Parametre.Load();
     touche = param.Key["Interact"];
 }
예제 #9
0
 private void Start()
 {
     SMParametre.Parametre p = Parametre.Load();
     mixer.SetFloat("Main", p.VolumeSonore);
 }
예제 #10
0
 // Update is called once per frame
 void Update()
 {
     param = SMParametre.Parametre.Load();
     mixer.SetFloat("Main", param.VolumeSonore);
     Sound.value = param.VolumeSonore;
 }
예제 #11
0
 // Use this for initialization
 void Start()
 {
     SMParametre.Parametre param = SMParametre.Parametre.Load();
     touche = param.Key ["Interact"];
     size   = listedemusique.Length;
 }