Esempio n. 1
0
        public void ToggleFull(bool enabled)
        {
            if (!FsmManager.PlayerHasHayosikoKey())
            {
                // We are using partial disabling to avoid any issues with MSC scripts relating uncle.
                TogglePartial(enabled);
                return;
            }
            else
            {
                // We are not using partial disabling, if player has permanently obtained Hayosiko, as it is not needed anymore.
                TogglePartial(true);
            }

            if (!enabled)
            {
                MoveNonDisableableObjects(temporaryParent);
            }

            gameObject.SetActive(enabled);

            if (enabled)
            {
                MoveNonDisableableObjects(null);
            }
        }