public void initEnemyCharacterModel(string enemyId, float scale = 1, UDE _ude = UDE.Animation) { thisCMCsUDE = _ude; id = enemyId; CType = SDConstants.CharacterType.Enemy; skinName = "default"; initCharacterModel(scale); }
public void initHeroCharacterModel(int hashcode, float scale = 1, UDE _ude = UDE.Animation) { thisCMCsUDE = _ude; heroHashcode = hashcode; id = SDDataManager.Instance.getHeroIdByHashcode(hashcode); CType = SDConstants.CharacterType.Hero; skinName = SDDataManager.Instance.getHeroSkinNameInSkeleton(hashcode); // GDEEquipmentData weapon = SDDataManager.Instance.getHeroWeapon(hashcode); if (weapon == null || weapon.hashcode <= 0 || string.IsNullOrEmpty(weapon.id)) { notShowWeaponSlot = true; } else { notShowWeaponSlot = false; weaponId = weapon.id; } // initCharacterModel(scale); }