Esempio n. 1
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.LegRight, 0);
     appearance.SetAppearance(AppearanceSlot.LegLeft, 0);
     appearance.SetAppearance(AppearanceSlot.KneeRight, -1);
     appearance.SetAppearance(AppearanceSlot.KneeLeft, -1);
 }
Esempio n. 2
0
 public override void SetAppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.LegRight, id);
     appearance.SetAppearance(AppearanceSlot.LegLeft, id);
     appearance.SetAppearance(AppearanceSlot.KneeRight, m_KneeID);
     appearance.SetAppearance(AppearanceSlot.KneeLeft, m_KneeID);
 }
        public override void Init(Entity ownner)
        {
            base.Init(ownner);
            m_Appearance = role.gameObject.GetComponentInChildren <CharacterAppearance>();

            RegisterEvent();
        }
Esempio n. 4
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.Hair, m_OldHairID);
     appearance.SetAppearance(AppearanceSlot.EyeBrows, m_OldEyeBrowsID);
     appearance.SetAppearance(AppearanceSlot.Head, m_OldHeadID);
     appearance.SetAppearance(AppearanceSlot.FacialHair, m_OldFacialHairID);
     appearance.SetAppearance(AppearanceSlot.HelmetWithoutHead, -1);
 }
Esempio n. 5
0
 public override void SetAppearance(CharacterAppearance appearance)
 {
     appearance.data.helmetWithoutHeadType = HelmetType.NoHair;
     m_OldHairID = appearance.data.basicAppearance.hairID;
     appearance.SetAppearance(AppearanceSlot.Hair, 0);
     appearance.SetAppearance(AppearanceSlot.HelmetWithoutHead, -1);
     appearance.SetAppearance(AppearanceSlot.HelmetWithHead, id);
 }
Esempio n. 6
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.ArmLowerRight, 0);
     appearance.SetAppearance(AppearanceSlot.ArmLowerLeft, 0);
     appearance.SetAppearance(AppearanceSlot.HandRight, 0);
     appearance.SetAppearance(AppearanceSlot.HandLeft, 0);
     appearance.SetAppearance(AppearanceSlot.ElbowRight, -1);
     appearance.SetAppearance(AppearanceSlot.ElbowLeft, -1);
 }
Esempio n. 7
0
 public override void SetAppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.ArmLowerRight, id);
     appearance.SetAppearance(AppearanceSlot.ArmLowerLeft, id);
     appearance.SetAppearance(AppearanceSlot.HandRight, id);
     appearance.SetAppearance(AppearanceSlot.HandLeft, id);
     appearance.SetAppearance(AppearanceSlot.ElbowRight, m_ElbowID);
     appearance.SetAppearance(AppearanceSlot.ElbowLeft, m_ElbowID);
 }
Esempio n. 8
0
        public void Init(CharacterAppearance character)
        {
            if (m_Renderer == null)
            {
                m_Renderer = GetComponent <SkinnedMeshRenderer>();
            }

            m_Character = character;
            m_CurID     = -100;
        }
Esempio n. 9
0
        public void Init()
        {
            RegisterEvent();
            AddressableResMgr.S.InstantiateAsync("InventoryRoleScene", (target) =>
            {
                target.transform.position = Vector3.one * 5000;
                m_CharacterAppearance     = target.GetComponentInChildren <CharacterAppearance>();
                m_CharacterAppearance.SetAppearanceData(GamePlayMgr.S.playerMgr.role.data.appearanceData);
            });

            GameInputMgr.S.uiAction.Rotate.performed += OnRoleRotatePerformed;
            GameInputMgr.S.uiAction.Rotate.canceled  += OnRoleRotateCanceled;
        }
Esempio n. 10
0
        public override void SetAppearance(CharacterAppearance appearance)
        {
            m_OldHairID       = appearance.data.basicAppearance.hairID;
            m_OldFacialHairID = appearance.data.basicAppearance.facialHairID;
            m_OldEyeBrowsID   = appearance.data.basicAppearance.eyeBrows;
            m_OldHeadID       = appearance.data.basicAppearance.headID;

            appearance.SetAppearance(AppearanceSlot.Hair, -1);
            appearance.SetAppearance(AppearanceSlot.EyeBrows, -1);
            appearance.SetAppearance(AppearanceSlot.Head, -1);
            appearance.SetAppearance(AppearanceSlot.FacialHair, 0);
            appearance.SetAppearance(AppearanceSlot.HelmetWithoutHead, -1);
            appearance.SetAppearance(AppearanceSlot.HelmetWithoutHead, id);
        }
Esempio n. 11
0
        public override void SetAppearance(CharacterAppearance appearance)
        {
            AddressableResMgr.S.InstantiateAsync(weaponResName, weapon =>
            {
                m_ObjWeapon = weapon;
                m_ObjWeapon.transform.SetParent(appearance.weaponBackAttachment);
                m_ObjWeapon.transform.ResetLocal();

                m_WeaponModel = m_ObjWeapon.GetComponent <WeaponModel>();
                m_WeaponModel.Init();
                m_WeaponModel.AttachWeapon();

                if (onWeaponLoaded != null)
                {
                    onWeaponLoaded(m_WeaponModel);
                }
            });
        }
Esempio n. 12
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.Hips, 0);
 }
Esempio n. 13
0
 public override void SetAppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.Hips, id);
 }
Esempio n. 14
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
     m_WeaponModel = null;
     AddressableResMgr.S.ReleaseInstance(m_ObjWeapon);
 }
Esempio n. 15
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.BackAttach, -1);
 }
Esempio n. 16
0
 public override void SetAppearance(CharacterAppearance appearance)
 {
 }
Esempio n. 17
0
 public override void SetAppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.BackAttach, id);
 }
 public override void Removeppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.ShoulderRight, -1);
     appearance.SetAppearance(AppearanceSlot.ShoulderLeft, -1);
 }
Esempio n. 19
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
 }
Esempio n. 20
0
 public override void SetAppearance(CharacterAppearance appearance)
 {
     appearance.data.helmetWithoutHeadType = HelmetType.Normal;
     appearance.SetAppearance(AppearanceSlot.HelmetWithoutHead, -1);
     appearance.SetAppearance(AppearanceSlot.HelmetWithHead, id);
 }
Esempio n. 21
0
 public override void Removeppearance(CharacterAppearance appearance)
 {
     appearance.SetAppearance(AppearanceSlot.Hair, m_OldHairID);
     appearance.SetAppearance(AppearanceSlot.HelmetWithHead, -1);
 }
Esempio n. 22
0
 public void ApplyAppearance(CharacterAppearance appearance)
 {
     SetAppearance(appearance);
     appearance.CombineMeshs();
 }
Esempio n. 23
0
 public virtual void Removeppearance(CharacterAppearance appearance)
 {
 }
Esempio n. 24
0
 public virtual void SetAppearance(CharacterAppearance appearance)
 {
 }