Megacity demo game for UOS
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
832 B

using Unity.Entities;
using Unity.MegaCity.Gameplay;
using UnityEngine;
namespace Unity.MegaCity.Authoring
{
/// <summary>
/// Authoring component for ControlSettings
/// </summary>
public class ControlSettingsAuthoring : MonoBehaviour
{
[BakingVersion("diego", 1)]
public class ControlSettingsBaker : Baker<ControlSettingsAuthoring>
{
public override void Bake(ControlSettingsAuthoring authoring)
{
var entity = GetEntity(TransformUsageFlags.Dynamic);
AddComponent(entity, new ControlSettings
{
MouseSensitivity = 1f,
InverseLookHorizontal = false,
InverseLookVertical = false
});
}
}
}
}