Пример #1
0
    private void Start()
    {
        if (lockedAnimals.Count() == 0)
        {
            LockedAnimals lockedAnimals = GetComponent <LockedAnimals>();
            if (lockedAnimals != null)
            {
                lockedAnimals.enabled = false;
            }

            PopulateLockedAnimals populateLockedAnimals = GetComponent <PopulateLockedAnimals>();
            if (populateLockedAnimals != null)
            {
                populateLockedAnimals.enabled = false;
            }

            MakeLockedAnimalsUnavailable makeLockedAnimalsUnavailable = GetComponent <MakeLockedAnimalsUnavailable>();
            if (makeLockedAnimalsUnavailable != null)
            {
                makeLockedAnimalsUnavailable.enabled = false;
            }

            MakeLockedAnimalsUninteractable makeLockedAnimalsUninteractable = GetComponent <MakeLockedAnimalsUninteractable>();
            if (makeLockedAnimalsUninteractable != null)
            {
                makeLockedAnimalsUninteractable.enabled = false;
            }

            UnlockLockedAnimalsWhen unlockLockedAnimalsWhen = GetComponent <UnlockLockedAnimalsWhen>();
            if (unlockLockedAnimalsWhen != null)
            {
                unlockLockedAnimalsWhen.enabled = false;
            }
        }
        enabled = false;
    }