Exemple #1
0
    void CheckBagsStates()
    {
        unfinishedBagNum = 0;
        foreach (GameObject bag in bagsInCar)
        {
            ClothToMachine ctm = bag.GetComponent <ClothToMachine>();
            if (ctm.underMachineNum < 0 || (ctm.underMachineNum >= 0 && !ctm.isFinished))
            {
                //todo:忽略了一种情况就是衣服正在洗但没洗完
                unfinishedBagNum++;
            }
        }

        if (unfinishedBagNum > 1)
        {
            FinalCameraController.BagOverFlow();
        }
    }