Beispiel #1
0
    public void EnterSelection()
    {
        EnteringSelection = !EnteringSelection;
        if (EnteringSelection)

        {
            if (LevelManager.stage == 2 && LevelManager.isInstruction)
            {
                StartCoroutine(LevelManager.EnterMatch_Tut_S3());
            }
            int idx = matchedNPCIdx[stationNum][tabNum];
            ProfileUsageState[idx] = "";
            EnterSelectionButton.GetComponent <Image>().sprite = afterEnter;
            ButtonDown.SetActive(true);
            ButtonUp.SetActive(true);
        }
        else
        {
            //确定选择
            if (LevelManager.stage == 2 && LevelManager.isInstruction)
            {
                LevelManager.EndMatch_Tut_S3();
            }
            int idx = matchedNPCIdx[stationNum][tabNum];
            if (ProfileUsageState[idx] != "")
            {
                EnteringSelection = !EnteringSelection;
            }
            else
            {
                ProfileUsageState[idx] = BagsController.stationBagOwners[stationNum][tabNum];
                EnterSelectionButton.GetComponent <Image>().sprite = beforeEnter;
                ButtonDown.SetActive(false);
                ButtonUp.SetActive(false);
            }
        }
    }