コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (!string.IsNullOrEmpty(customFolderDataPath) && Directory.Exists(customFolderDataPath))
        {
            if (frameCount == 10)
            {
                if (FileExistInPath(customFolderDataPath))
                {
                    isCustomized = true;
                    UpdateGraphics();
                    SetPrizesColliderSize();
                }
                else
                {
                    fileExplorer.ActivateFileNotFoundWindow();
                }
            }
        }

        if (isCustomized && gameObject.activeInHierarchy && !updateCalled && frameCount == 8)
        {
            UpdatePrizesQuantity();
            updateCalled = true;
        }

        if (slotMachineOn)
        {
            MoveSlots();
        }

        frameCount++;
    }