// Use this for initialization void Start() { gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> (); volumeSlider.value = gpConfig.volume; diffSelector = new Difficulty[]{Difficulty.Easy, Difficulty.Medium, Difficulty.Hard }; difficulty.text = diffSelector [(int)gpConfig.difficulty].ToString(); }
// Use this for initialization void Start() { gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> (); keys = new Group[gpConfig.Groups.Keys.Count]; gpConfig.Groups.Keys.CopyTo(keys, 0); CurrentLocation = 0; hasBeenInitialized = true; }
public override void OnInspectorGUI() { base.OnInspectorGUI(); GameplayConfiguration script = (GameplayConfiguration)target; if (GUILayout.Button("Reset Configurations")) { script.ResetParameters(); } }
// Use this for initialization void Start() { gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> (); CurrentLocation = 0; hasBeenInitialized = true; }
// Use this for initialization void Start() { gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> (); songDetails.text = "PURSUIT"; }
public void Initialize() { gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> (); CurrentLocation = 0; }