37 lines
986 B
C#
37 lines
986 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
[System.Serializable]
|
|
public class WeaponSizeByPlayerSkin
|
|
{
|
|
[SerializeField] internal List<WeaponListDataContainer> weaponListDataContainers;
|
|
internal Dictionary<PlayableCharacterSkin, WeaponDataClass> Data = new Dictionary<PlayableCharacterSkin, WeaponDataClass>();
|
|
|
|
public void Init()
|
|
{
|
|
foreach (var aContainer in weaponListDataContainers)
|
|
{
|
|
Data.Add(aContainer.playableCharacterSkin, aContainer.weaponDataClass);
|
|
}
|
|
}
|
|
public WeaponSizeByPlayerSkin()
|
|
{
|
|
}
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class WeaponListDataContainer
|
|
{
|
|
public PlayableCharacterSkin playableCharacterSkin;
|
|
public WeaponDataClass weaponDataClass;
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class WeaponDataClass
|
|
{
|
|
public GameObject objectWeapon;
|
|
public Vector3 scale = Vector3.zero;
|
|
public Vector3 pos = Vector3.zero;
|
|
public Vector3 rot = Vector3.zero;
|
|
} |