コード例 #1
0
    //Initialize
    private void Start()
    {
        trans = FindObjectOfType <TransitionCameras>() as TransitionCameras;

        //This could would need to be refactored in the future if the system was to be fully realized
        directors       = new PlayableDirector[2, leftDirectors.Length];
        directors[0, 0] = leftDirectors[0];
        directors[0, 1] = leftDirectors[1];
        directors[1, 0] = rightDirectors[0];
        directors[1, 1] = rightDirectors[1];
    }
コード例 #2
0
    //Initialize
    void Start()
    {
        trans         = FindObjectOfType <TransitionCameras>() as TransitionCameras;
        buttons[0, 0] = leftButtons[0];
        buttons[0, 1] = leftButtons[1];
        buttons[1, 0] = rightButtons[0];
        buttons[1, 1] = rightButtons[1];
        canGrowMeter  = true;

        for (int i = 0; i < buttonStates.GetLength(0); i++)
        {
            for (int j = 0; j < buttonStates.GetLength(1); j++)
            {
                buttonStates[i, j] = false;
            }
        }
    }