范川铭

1.一些蛇得改动

... ... @@ -460,7 +460,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0c64b701231ca9e46881b32b18b7f64c, type: 3}
m_Name:
m_EditorClassIdentifier:
portName: COM3
portName: COM4
baudRate: 9600
dataBits: 8
parity: 0
... ... @@ -518,7 +518,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: dccc1ff0ad2299f41849493e2bcc652e, type: 3}
m_Name:
m_EditorClassIdentifier:
bgScrollSpeed: 200
bgScrollSpeed: 100
speedScale: 0
FoodList:
- {fileID: 21300000, guid: 08bf39169d9d57c4c94382db47e463cf, type: 3}
... ...
... ... @@ -7,7 +7,7 @@ using System;
public class AngleReader : MonoBehaviour
{
// 串口号,根据实际情况修改
public string portName = "COM3";
public string portName = "COM4";
// 波特率,根据传感器设置修改
public int baudRate = 9600;
... ... @@ -96,11 +96,11 @@ public class AngleReader : MonoBehaviour
// foreach (byte b in commandBytes) {
// Debug.Log("已发送数据: " + b);
// }
Debug.Log("已发送命令: " + readAngleCommand);
// Debug.Log("已发送命令: " + readAngleCommand);
}
catch (System.Exception e)
{
Debug.LogError("发送数据时出错: " + e.Message);
// Debug.LogError("发送数据时出错: " + e.Message);
}
}
... ... @@ -140,7 +140,7 @@ public class AngleReader : MonoBehaviour
{
if (length < 5 || !VerifyCRC(data, length))
{
Debug.LogError("数据帧长度不足或 CRC 校验失败");
//Debug.LogError("数据帧长度不足或 CRC 校验失败");
return;
}
... ... @@ -153,7 +153,7 @@ public class AngleReader : MonoBehaviour
byte byteCount = data[2];
if (length != 5 + byteCount)
{
Debug.LogError("数据帧长度与字节计数不匹配");
// Debug.LogError("数据帧长度与字节计数不匹配");
return;
}
... ... @@ -163,14 +163,14 @@ public class AngleReader : MonoBehaviour
registers[i] = (ushort)((data[3 + i * 2] & 0xFF) << 8 | (data[4 + i * 2] & 0xFF));
}
Debug.Log($"从站地址: {slaveAddress}, 功能码: {functionCode}, 寄存器数量: {registers.Length}");
// Debug.Log($"从站地址: {slaveAddress}, 功能码: {functionCode}, 寄存器数量: {registers.Length}");
// 本传感器共有2个寄存器,数据拼起来就是角度的16进制数据
string hexString = "";
for (int i = 0; i < registers.Length; i++)
{
hexString += registers[i].ToString("X");
Debug.Log($"寄存器 {i}: {registers[i]}");
// Debug.Log($"寄存器 {i}: {registers[i]}");
}
// 偶现某种情况下寄存器数据会丢失,此处确保两个寄存器数据都正常,否则本次数据忽略
... ... @@ -181,11 +181,11 @@ public class AngleReader : MonoBehaviour
float floatAngle = HexStringToFloatIEEE754(hexString);
angle = floatAngle;
Debug.Log($"计算角度为: {floatAngle}");
// Debug.Log($"计算角度为: {floatAngle}");
break;
default:
Debug.LogError($"不支持的功能码: {functionCode}");
// Debug.LogError($"不支持的功能码: {functionCode}");
break;
}
}
... ... @@ -222,7 +222,7 @@ public class AngleReader : MonoBehaviour
private float HexStringToFloatIEEE754(string hexString)
{
Debug.Log($"hexString: {hexString}");
// Debug.Log($"hexString: {hexString}");
// 将十六进制字符串转换为 uint 类型
if (uint.TryParse(hexString, System.Globalization.NumberStyles.HexNumber, null, out uint hexValue))
{
... ... @@ -238,7 +238,7 @@ public class AngleReader : MonoBehaviour
private float HexToFloatIEEE754(uint hexValue)
{
Debug.Log($"hexValue: {hexValue}");
// Debug.Log($"hexValue: {hexValue}");
// 分离符号位、指数位和尾数位
int sign = (int)(hexValue >> 31) & 1;
int exponent = ((int)(hexValue >> 23) & 0xFF) - 127;
... ...
... ... @@ -21,7 +21,7 @@ public class BackGroundSroll : MonoBehaviour
private int zeroCount = 0; // 连续出现0的次数
private float IncrementalProbability = 0.015f; // 递增概率
public bool isCanMoveBg = false;
public bool isCanMoveBg = true;
private bool isTouchFood = false;
... ... @@ -53,10 +53,9 @@ public class BackGroundSroll : MonoBehaviour
{
bg.Translate(Vector3.right * bgScrollSpeed * speedScale * Time.deltaTime);
//bg.Translate(Vector3.right * bgScrollSpeed * Time.deltaTime);
Debug.Log("速度倍率: " + speedScale);
}
snake.SetSnakePlayState(speedScale <= 0);
snake.SetSnakePlayState(speedScale <= 0.01f);
// 检查是否需要重置位置
for (int i = 0; i < backgrounds.Length; i++)
{
... ... @@ -75,6 +74,7 @@ public class BackGroundSroll : MonoBehaviour
{
if (eatPoint != null)
{
if (curFood == null) return;
if (curFood.transform.position.x < eatPoint.transform.position.x)
{
float dis = Vector3.Distance(eatPoint.transform.position, curFood.transform.position);
... ...
... ... @@ -11,9 +11,9 @@ public class GameControl : MonoBehaviour
[SerializeField] private AngleReader angleReader;
private float beforeAngle = 0;
private float beforeTime = 0;
public float speed = 1f;
public float smoothTime = 0.1f;
[Header("倍率区间")] public float aagnificationRange = 2f;
private float smoothVelocity;
void Start()
... ... @@ -22,7 +22,6 @@ public class GameControl : MonoBehaviour
{
// 先获取一下 触发器的初始角度
beforeAngle = angleReader.GetAngle();
beforeTime = DateTime.Now.Millisecond;
}
}
... ... @@ -32,18 +31,17 @@ public class GameControl : MonoBehaviour
if (angleReader != null)
{
curAngle = angleReader.GetAngle();
Debug.Log("当前角度: " + curAngle);
float angleDelta = GetAngleDelta(beforeAngle, curAngle);
Debug.Log("转动角度: " + angleDelta);
float targetSpeed = CalculateTargetSpeed(angleDelta);
Debug.Log("当前速度: " + targetSpeed);
targetSpeed = Mathf.SmoothDamp(
bg.speedScale,
targetSpeed,
ref smoothVelocity,
0.1f // 平滑时间(秒)
smoothTime // 平滑时间(秒)
);
beforeAngle = curAngle;
bg.speedScale = targetSpeed;
beforeAngle = curAngle;
}
}
... ... @@ -64,8 +62,8 @@ public class GameControl : MonoBehaviour
/// </summary>
float CalculateTargetSpeed(float angleDelta)
{
// 当角度不在转动 速度倍率为0
if (Mathf.Abs(angleDelta) <= 0.0001f)
// 当角度变化极小时,速度倍率设为0
if (Mathf.Abs(angleDelta) <= Mathf.Epsilon)
{
return 0;
}
... ... @@ -73,10 +71,14 @@ public class GameControl : MonoBehaviour
float inputRatio;
if (Mathf.Abs(angleDelta) > 0.01f)
{
// 将角度变化值的绝对值除以90,然后限制在0.1到1之间
inputRatio = Mathf.Clamp(Mathf.Abs(angleDelta) / 90f, 0.1f, 1f);
return 1f + inputRatio * 99f * 2;
// 计算目标速度,这里乘以99再乘以2的逻辑可根据实际需求调整
return 1f + inputRatio * 99f * aagnificationRange;
}
else
{
return 0;
}
return 2;
}
}
\ No newline at end of file
... ...
... ... @@ -35,7 +35,7 @@ public class SnakeControl : MonoBehaviour
[Tooltip("吃到得食物ID")] public int eatFoodId = 0;
private bool isPaused = true;
private bool isPaused = false;
// 动画状态控制变量
private enum AnimationState
... ...
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_PixelRect:
serializedVersion: 2
x: 0
y: 42.666668
width: 2560
height: 1357.3334
m_ShowMode: 4
m_Title: Inspector
m_RootView: {fileID: 2}
m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000}
m_Maximized: 1
--- !u!114 &2
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 3}
- {fileID: 5}
- {fileID: 4}
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 2560
height: 1357.3334
m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000}
m_UseTopView: 1
m_TopViewHeight: 30
m_UseBottomView: 1
m_BottomViewHeight: 20
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 2560
height: 30
m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0}
m_LastLoadedLayoutName:
--- !u!114 &4
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 1337.3334
width: 2560
height: 20
m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0}
--- !u!114 &5
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 6}
- {fileID: 9}
- {fileID: 12}
m_Position:
serializedVersion: 2
x: 0
y: 30
width: 2560
height: 1307.3334
m_MinSize: {x: 300, y: 100}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 122
draggingID: 0
--- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 7}
- {fileID: 8}
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 1414.6666
height: 1307.3334
m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 8096, y: 16192}
vertical: 1
controlID: 16
draggingID: 0
--- !u!114 &7
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: SceneView
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 1414.6666
height: 876.6667
m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 14}
m_Panes:
- {fileID: 14}
- {fileID: 13}
m_Selected: 0
m_LastSelected: 1
--- !u!114 &8
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: ConsoleWindow
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 876.6667
width: 1414.6666
height: 430.6667
m_MinSize: {x: 101, y: 121}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 15}
m_Panes:
- {fileID: 15}
m_Selected: 0
m_LastSelected: 0
--- !u!114 &9
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 10}
- {fileID: 11}
m_Position:
serializedVersion: 2
x: 1414.6666
y: 0
width: 422
height: 1307.3334
m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 8096, y: 16192}
vertical: 1
controlID: 62
draggingID: 0
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 422
height: 630.6667
m_MinSize: {x: 202, y: 221}
m_MaxSize: {x: 4002, y: 4021}
m_ActualView: {fileID: 16}
m_Panes:
- {fileID: 16}
m_Selected: 0
m_LastSelected: 0
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: ProjectBrowser
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 630.6667
width: 422
height: 676.6667
m_MinSize: {x: 232, y: 271}
m_MaxSize: {x: 10002, y: 10021}
m_ActualView: {fileID: 17}
m_Panes:
- {fileID: 17}
m_Selected: 0
m_LastSelected: 0
--- !u!114 &12
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: InspectorWindow
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 1836.6666
y: 0
width: 723.3334
height: 1307.3334
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 18}
m_Panes:
- {fileID: 18}
- {fileID: 19}
m_Selected: 0
m_LastSelected: 1
--- !u!114 &13
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: Game
m_Image: {fileID: 4621777727084837110, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 0
y: 72.66667
width: 1413.6666
height: 855.6667
m_SerializedDataModeController:
m_DataMode: 0
m_PreferredDataMode: 0
m_SupportedDataModes:
isAutomatic: 1
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData: []
m_OverlaysVisible: 1
m_SerializedViewNames: []
m_SerializedViewValues: []
m_PlayModeViewName: GameView
m_ShowGizmos: 0
m_TargetDisplay: 0
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
m_TargetSize: {x: 1920, y: 1080}
m_TextureFilterMode: 0
m_TextureHideFlags: 61
m_RenderIMGUI: 1
m_EnterPlayModeBehavior: 0
m_UseMipMap: 0
m_VSyncEnabled: 0
m_Gizmos: 0
m_Stats: 0
m_SelectedSizes: 09000000000000000000000000000000000000000000000000000000000000000000000000000000
m_ZoomArea:
m_HRangeLocked: 0
m_VRangeLocked: 0
hZoomLockedByDefault: 0
vZoomLockedByDefault: 0
m_HBaseRangeMin: -640
m_HBaseRangeMax: 640
m_VBaseRangeMin: -360
m_VBaseRangeMax: 360
m_HAllowExceedBaseRangeMin: 1
m_HAllowExceedBaseRangeMax: 1
m_VAllowExceedBaseRangeMin: 1
m_VAllowExceedBaseRangeMax: 1
m_ScaleWithWindow: 0
m_HSlider: 0
m_VSlider: 0
m_IgnoreScrollWheelUntilClicked: 0
m_EnableMouseInput: 0
m_EnableSliderZoomHorizontal: 0
m_EnableSliderZoomVertical: 0
m_UniformScale: 1
m_UpDirection: 1
m_DrawArea:
serializedVersion: 2
x: 0
y: 21
width: 1413.6666
height: 834.6667
m_Scale: {x: 1, y: 1}
m_Translation: {x: 706.8333, y: 417.33334}
m_MarginLeft: 0
m_MarginRight: 0
m_MarginTop: 0
m_MarginBottom: 0
m_LastShownAreaInsideMargins:
serializedVersion: 2
x: -706.8333
y: -417.33334
width: 1413.6666
height: 834.6667
m_MinimalGUI: 1
m_defaultScale: 1
m_LastWindowPixelSize: {x: 2120.5, y: 1283.5}
m_ClearInEditMode: 1
m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 00000000000000000000
m_XRRenderMode: 0
m_RenderTexture: {fileID: 0}
--- !u!114 &14
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: Scene
m_Image: {fileID: 8634526014445323508, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 0
y: 72.66667
width: 1413.6666
height: 855.6667
m_SerializedDataModeController:
m_DataMode: 0
m_PreferredDataMode: 0
m_SupportedDataModes:
isAutomatic: 1
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData:
- dockPosition: 0
containerId: overlay-toolbar__top
floating: 0
collapsed: 0
displayed: 1
snapOffset: {x: -172, y: -26.666687}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 3
id: Tool Settings
index: 0
layout: 1
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 0
containerId: overlay-toolbar__top
floating: 0
collapsed: 0
displayed: 1
snapOffset: {x: -141, y: 149}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 1
id: unity-grid-and-snap-toolbar
index: 1
layout: 1
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-toolbar__top
floating: 0
collapsed: 0
displayed: 1
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: unity-scene-view-toolbar
index: 0
layout: 1
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-toolbar__top
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 1
id: unity-search-toolbar
index: 1
layout: 1
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 0
containerId: overlay-container--left
floating: 0
collapsed: 0
displayed: 1
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: unity-transform-toolbar
index: 0
layout: 2
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 0
containerId: overlay-container--left
floating: 0
collapsed: 0
displayed: 1
snapOffset: {x: 0, y: 197}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: unity-component-tools
index: 1
layout: 2
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 0
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 1
snapOffset: {x: 67.5, y: -0.666687}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 2
id: Orientation
index: 0
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Light Settings
index: 2
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Camera
index: 1
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Cloth Constraints
index: 3
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Cloth Collisions
index: 4
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Navmesh Display
index: 4
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Agent Display
index: 5
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Obstacle Display
index: 6
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Occlusion Culling
index: 5
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Physics Debugger
index: 6
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Scene Visibility
index: 7
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Particles
index: 8
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Tilemap
index: 11
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Tilemap Palette Helper
index: 12
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 48, y: 48}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/TrailRenderer
index: 9
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 1
snapOffset: {x: 48, y: 48}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: UnityEditor.SceneViewCameraOverlay
index: 8
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 48, y: 48}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Open Tile Palette
index: 0
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 48, y: 48}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Tilemap Focus
index: 1
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
- dockPosition: 1
containerId: overlay-container--right
floating: 0
collapsed: 0
displayed: 0
snapOffset: {x: 48, y: 48}
snapOffsetDelta: {x: 0, y: 0}
snapCorner: 0
id: Scene View/Path
index: 10
layout: 4
size: {x: 0, y: 0}
sizeOverriden: 0
m_OverlaysVisible: 1
m_WindowGUID: 048b2a10d9f195d49bea3bd2f09f74bc
m_Gizmos: 1
m_OverrideSceneCullingMask: 6917529027641081856
m_SceneIsLit: 1
m_SceneLighting: 1
m_2DMode: 1
m_isRotationLocked: 0
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 584, y: 960, z: 0}
speed: 2
m_Value: {x: 584, y: 960, z: 0}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
name: Shaded
section: Shading Mode
m_ValidateTrueMetals: 0
m_DoValidateTrueMetals: 0
m_SceneViewState:
m_AlwaysRefresh: 0
showFog: 1
showSkybox: 1
showFlares: 1
showImageEffects: 1
showParticleSystems: 1
showVisualEffectGraphs: 1
m_FxEnabled: 1
m_Grid:
xGrid:
m_Fade:
m_Target: 0
speed: 2
m_Value: 0
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
m_Pivot: {x: 0, y: 0, z: 0}
m_Size: {x: 0, y: 0}
yGrid:
m_Fade:
m_Target: 0
speed: 2
m_Value: 0
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
m_Pivot: {x: 0, y: 0, z: 0}
m_Size: {x: 1, y: 1}
zGrid:
m_Fade:
m_Target: 1
speed: 2
m_Value: 1
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
m_Pivot: {x: 0, y: 0, z: 0}
m_Size: {x: 1, y: 1}
m_ShowGrid: 1
m_GridAxis: 1
m_gridOpacity: 0.5
m_Rotation:
m_Target: {x: 0, y: 0, z: 0, w: 1}
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 2930.282
speed: 2
m_Value: 2930.282
m_Ortho:
m_Target: 1
speed: 2
m_Value: 1
m_CameraSettings:
m_Speed: 1
m_SpeedNormalized: 0.5
m_SpeedMin: 0.001
m_SpeedMax: 2
m_EasingEnabled: 1
m_EasingDuration: 0.4
m_AccelerationEnabled: 1
m_FieldOfViewHorizontalOrVertical: 60
m_NearClip: 0.03
m_FarClip: 10000
m_DynamicClip: 1
m_OcclusionCulling: 0
m_LastSceneViewRotation: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
m_LastSceneViewOrtho: 0
m_ReplacementShader: {fileID: 0}
m_ReplacementString:
m_SceneVisActive: 1
m_LastLockedObject: {fileID: 0}
m_ViewIsLockedToObject: 0
--- !u!114 &15
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: Console
m_Image: {fileID: -4950941429401207979, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 0
y: 949.3334
width: 1413.6666
height: 409.6667
m_SerializedDataModeController:
m_DataMode: 0
m_PreferredDataMode: 0
m_SupportedDataModes:
isAutomatic: 1
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData: []
m_OverlaysVisible: 1
--- !u!114 &16
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: Hierarchy
m_Image: {fileID: -3734745235275155857, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1414.6667
y: 72.66667
width: 420
height: 609.6667
m_SerializedDataModeController:
m_DataMode: 0
m_PreferredDataMode: 0
m_SupportedDataModes:
isAutomatic: 1
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData: []
m_OverlaysVisible: 1
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 2c610000
m_LastClickedID: 24876
m_ExpandedIDs: fafaffff1e610000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
m_OriginalName:
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: 0
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 0
m_ClientGUIView: {fileID: 10}
m_SearchString:
m_ExpandedScenes: []
m_CurrenRootInstanceID: 0
m_LockTracker:
m_IsLocked: 0
m_CurrentSortingName: TransformSorting
m_WindowGUID: 9b91e4b270fd66748aeea70fc89dab10
--- !u!114 &17
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_MinSize: {x: 230, y: 250}
m_MaxSize: {x: 10000, y: 10000}
m_TitleContent:
m_Text: Project
m_Image: {fileID: -5179483145760003458, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1414.6667
y: 703.3334
width: 420
height: 655.6667
m_SerializedDataModeController:
m_DataMode: 0
m_PreferredDataMode: 0
m_SupportedDataModes:
isAutomatic: 1
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData: []
m_OverlaysVisible: 1
m_SearchFilter:
m_NameFilter:
m_ClassNames: []
m_AssetLabels: []
m_AssetBundleNames: []
m_ReferencingInstanceIDs:
m_SceneHandles:
m_ShowAllHits: 0
m_SkipHidden: 0
m_SearchArea: 1
m_Folders:
- Assets/Scripts
m_Globs: []
m_OriginalText:
m_ImportLogFlags: 0
m_FilterByTypeIntersection: 0
m_ViewMode: 0
m_StartGridSize: 64
m_LastFolders: []
m_LastFoldersGridSize: -1
m_LastProjectPath: D:\U3D_Snake\Snake
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: fe390000
m_LastClickedID: 14846
m_ExpandedIDs: 00000000c0610000c2610000c4610000c6610000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
m_OriginalName:
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: 0
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 1
m_ClientGUIView: {fileID: 0}
m_SearchString:
m_CreateAssetUtility:
m_EndAction: {fileID: 0}
m_InstanceID: 0
m_Path:
m_Icon: {fileID: 0}
m_ResourceFile:
m_AssetTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: ffffffff00000000c0610000c2610000c4610000c6610000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
m_OriginalName:
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: 0
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 1
m_ClientGUIView: {fileID: 11}
m_SearchString:
m_CreateAssetUtility:
m_EndAction: {fileID: 0}
m_InstanceID: 0
m_Path:
m_Icon: {fileID: 0}
m_ResourceFile:
m_ListAreaState:
m_SelectedInstanceIDs:
m_LastClickedInstanceID: 0
m_HadKeyboardFocusLastEvent: 1
m_ExpandedInstanceIDs:
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
m_OriginalName:
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: 0
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 1
m_ClientGUIView: {fileID: 0}
m_CreateAssetUtility:
m_EndAction: {fileID: 0}
m_InstanceID: 0
m_Path:
m_Icon: {fileID: 0}
m_ResourceFile:
m_NewAssetIndexInList: -1
m_ScrollPosition: {x: 0, y: 0}
m_GridSize: 64
m_SkipHiddenPackages: 0
m_DirectoriesAreaWidth: 115
--- !u!114 &18
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: Inspector
m_Image: {fileID: -440750813802333266, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1836.6667
y: 72.66667
width: 722.3334
height: 1286.3334
m_SerializedDataModeController:
m_DataMode: 0
m_PreferredDataMode: 0
m_SupportedDataModes:
isAutomatic: 1
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData: []
m_OverlaysVisible: 1
m_ObjectsLockedBeforeSerialization: []
m_InstanceIDsLockedBeforeSerialization:
m_PreviewResizer:
m_CachedPref: 460.66675
m_ControlHash: -371814159
m_PrefName: Preview_InspectorPreview
m_LastInspectedObjectInstanceID: -1
m_LastVerticalScrollValue: 0
m_GlobalObjectId:
m_InspectorMode: 0
m_LockTracker:
m_IsLocked: 0
m_PreviewWindow: {fileID: 0}
--- !u!114 &19
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 13854, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_MinSize: {x: 310, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: Project Settings
m_Image: {fileID: 866346219090771560, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1833.3334
y: 80
width: 718.33325
height: 1271.6666
m_SerializedDataModeController:
m_DataMode: 0
m_PreferredDataMode: 0
m_SupportedDataModes:
isAutomatic: 1
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData: []
m_OverlaysVisible: 1
m_PosLeft: {x: 0, y: 0}
m_PosRight: {x: 0, y: 0}
m_Scope: 1
m_SplitterFlex: 0.08347677
m_SearchText:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 4dcf9b58
m_LastClickedID: 1486606157
m_ExpandedIDs: 00000000c53aba5a
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
m_OriginalName:
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: 0
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 0
m_ClientGUIView: {fileID: 0}
m_SearchString:
... ...