Esempio n. 1
0
        private void InitializeGameObjects()
        {
            if (EquippableModComponent?.EquippedModel is null)
            {
                return;
            }
            switch (PlayerUtils.GetPlayerGender())
            {
            case PlayerGender.Female:
                arms = EquippableModComponent.EquippedModel.transform.FindChild("readingArmsF")?.gameObject;
                EquippableModComponent.EquippedModel.transform.FindChild("readingArmsM")?.gameObject.SetActive(false);
                break;

            case PlayerGender.Male:
                EquippableModComponent.EquippedModel.transform.FindChild("readingArmsF")?.gameObject.SetActive(false);
                arms = EquippableModComponent.EquippedModel.transform.FindChild("readingArmsM")?.gameObject;
                break;
            }
            binoculars = EquippableModComponent.EquippedModel.transform.FindChild("dev_binoculars_hudShape_1")?.gameObject;
            strap      = EquippableModComponent.EquippedModel.transform.FindChild("strap")?.gameObject;
        }