// 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>(); }
// Use this for initialization void Start() { param = SMParametre.Parametre.Load(); param.Apply(); Sound.value = param.VolumeSonore; Sound.onValueChanged.AddListener(Change); }
public void OnClickDelete() { SaveData.SaveData.DeleteAll(); SMParametre.Parametre param = SMParametre.Parametre.Load(); param.Apply(); param.Save(); mixer.SetFloat("Main", param.VolumeSonore); }
public static Parametre Load() { Parametre p = SaveData.SaveData.GetObject <Parametre>("Parametre"); if (p == null) { return(new Parametre()); } return(p); }
// 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); }
// 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); }
// 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()); }
// Use this for initialization void Start() { SMParametre.Parametre param = SMParametre.Parametre.Load(); touche = param.Key["Interact"]; }
private void Start() { SMParametre.Parametre p = Parametre.Load(); mixer.SetFloat("Main", p.VolumeSonore); }
// Update is called once per frame void Update() { param = SMParametre.Parametre.Load(); mixer.SetFloat("Main", param.VolumeSonore); Sound.value = param.VolumeSonore; }
// Use this for initialization void Start() { SMParametre.Parametre param = SMParametre.Parametre.Load(); touche = param.Key ["Interact"]; size = listedemusique.Length; }