Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        SPS = GameObject.Find("SoundObject").GetComponent <SoundPlayerScript> ();
        ES  = GameObject.Find("EternalHolder").GetComponent <EternalScript> ();

        LeftRightPos        = new int[4];
        UpDownPos           = new int[4];
        InputAllowedLR      = new bool[4];
        InputAllowedUD      = new bool[4];
        InputResetCounterLR = new int[4];
        InputResetCounterUD = new int[4];
        CurrentSlide        = new int[4] {
            1, 1, 1, 1
        };
        CurrentSelectedButton = new int[4];
        playerIndex           = new PlayerIndex[4];
        state           = new GamePadState[4];
        prevState       = new GamePadState[4];
        lockedIn        = false;
        NumberOfPlayers = 0;

        for (int x = 0; x < 4; x++)
        {
            playerIndex [x] = (PlayerIndex)x;
        }

        if (ES.CheckIfSecondVisit())
        {
            SetOverviewPrimaryText(0, ES.GetPrimary(0));
            SetOverviewPrimaryText(1, ES.GetPrimary(1));
            SetOverviewPrimaryText(2, ES.GetPrimary(2));
            SetOverviewPrimaryText(3, ES.GetPrimary(3));
            SetOverviewSecondaryText(0, ES.GetSecondary(0));
            SetOverviewSecondaryText(1, ES.GetSecondary(1));
            SetOverviewSecondaryText(2, ES.GetSecondary(2));
            SetOverviewSecondaryText(3, ES.GetSecondary(3));
        }
    }