コード例 #1
0
    // EXECUTION FUNCTIONS

    private void Start()
    {
        progressionManager = FindObjectOfType <ProgressionManager>();
        otherSections      = FindObjectsOfType <Section>().Where(s => s != this).ToArray();
        FindObjectOfType <Blink>().blinkEvent += OnBlink;

        foreach (var s in sets)
        {
            s.Initialize();
        }

        Scramble();

        currentSelectionInt = 2;
        currentlyActiveSet  = sets[2];

        currentlyActiveSet.Load();
    }
コード例 #2
0
    public void Reset()
    {
        done       = false;
        inPosition = false;
        Scramble();

        currentlyActiveSet.Unload();

        foreach (var s in sets)
        {
            s.Reset();
        }

        currentSelectionInt = 0;
        currentlyActiveSet  = sets[0];

        currentlyActiveSet.Load();
    }