コード例 #1
0
    // 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();
    }
コード例 #2
0
    // 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;
    }
コード例 #3
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        GameplayConfiguration script = (GameplayConfiguration)target;

        if (GUILayout.Button("Reset Configurations"))
        {
            script.ResetParameters();
        }
    }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> ();
     CurrentLocation = 0;
     hasBeenInitialized = true;
 }
コード例 #5
0
 // Use this for initialization
 void Start()
 {
     gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> ();
     songDetails.text = "PURSUIT";
 }
コード例 #6
0
 public void Initialize()
 {
     gpConfig = GameObject.FindObjectOfType<GameplayConfiguration> ();
     CurrentLocation = 0;
 }