コード例 #1
0
        private void FinishLoadResource(WardrobeParam param, int index)
        {
            if (index == _p1Index && FirstPersonIncluded)
            {
                if (IsFirstPerson)
                {
                    AppearanceUtils.EnableRender(param.DefaultGameObject);
                    AppearanceUtils.EnableRender(param.AlternativeGameObject);
                }
                else
                {
                    AppearanceUtils.DisableRender(param.DefaultGameObject);
                    AppearanceUtils.DisableRender(param.AlternativeGameObject);
                }

                AppearanceUtils.DisableShadow(param.DefaultGameObject);
                AppearanceUtils.DisableShadow(param.AlternativeGameObject);

                _p1Avatar.AddWardrobe(param);
                UpdateRenderBelowAnimatorP1();
            }

            if (index == _p3Index && ThirdPersonIncluded)
            {
                if (IsFirstPerson)
                {
                    AppearanceUtils.DisableRender(param.DefaultGameObject);
                    AppearanceUtils.DisableRender(param.AlternativeGameObject);
                }
                else
                {
                    AppearanceUtils.EnableRender(param.DefaultGameObject);
                    AppearanceUtils.EnableRender(param.AlternativeGameObject);
                }

                _p3Avatar.AddWardrobe(param);
                UpdateRenderBelowAnimatorP3();
            }

            ChangeWardrobeShader(param.DefaultGameObject, index);
            ChangeWardrobeShader(param.AlternativeGameObject, index);
        }