Browse Source

修复编译错误

master
star\zhenghan 3 years ago
parent
commit
c8d25c5fb0
  1. 3
      Unity/Assets/HotfixView/Unity.HotfixView.asmdef
  2. 3
      Unity/Assets/ModelView/Unity.ModelView.asmdef
  3. 1
      Unity/Codes/HotfixView/Demo/Scene/PeachValleyComponent.cs
  4. 1
      Unity/Codes/ModelView/Demo/Scene/PeachValleyComponent.cs

3
Unity/Assets/HotfixView/Unity.HotfixView.asmdef

@ -8,7 +8,8 @@
"Unity.Hotfix", "Unity.Hotfix",
"Unity.ModelView", "Unity.ModelView",
"Animancer", "Animancer",
"YooAsset" "YooAsset",
"Unity.RenderPipelines.Universal.Runtime"
], ],
"includePlatforms": [ "includePlatforms": [
"Editor" "Editor"

3
Unity/Assets/ModelView/Unity.ModelView.asmdef

@ -6,7 +6,8 @@
"Unity.Mono", "Unity.Mono",
"Unity.ThirdParty", "Unity.ThirdParty",
"Animancer", "Animancer",
"YooAsset" "YooAsset",
"Unity.RenderPipelines.Universal.Runtime"
], ],
"includePlatforms": [ "includePlatforms": [
"Editor" "Editor"

1
Unity/Codes/HotfixView/Demo/Scene/PeachValleyComponent.cs

@ -12,6 +12,7 @@ namespace ET
} }
} }
[FriendClass(typeof(PeachValleyComponent))]
public static class PeachValleyComponentSystem public static class PeachValleyComponentSystem
{ {
private const float MinutePerHouse = 60.0f; private const float MinutePerHouse = 60.0f;

1
Unity/Codes/ModelView/Demo/Scene/PeachValleyComponent.cs

@ -3,6 +3,7 @@ using UnityEngine.Rendering.Universal;
namespace ET namespace ET
{ {
[ComponentOf(typeof(Scene))]
public class PeachValleyComponent: Entity, IAwake public class PeachValleyComponent: Entity, IAwake
{ {
public Light2D GlobalLight; public Light2D GlobalLight;

Loading…
Cancel
Save