This commit is contained in:
CortexCore
2025-03-03 18:43:55 +08:00
parent 54f40090c9
commit 4402ae533b
32 changed files with 337 additions and 73 deletions

View File

@@ -1,7 +1,9 @@
{
"name": "Com.Project.B.Interaction",
"rootNamespace": "",
"references": [],
"references": [
"GUID:d750d221812bb1d48baff92e6ef73e28"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
@@ -10,5 +12,5 @@
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": true
"noEngineReferences": false
}

View File

@@ -13,6 +13,7 @@ namespace Net.Project.B.Interaction
Tap,
Hold,
Performed,
System,
}
/// <summary>
/// 可互动类型

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
using UnityEngine;
#if UNITY_5_3_OR_NEWER
namespace Net.Project.B.Interaction
{
[Serializable]
public class WorldInteractable : IWorldInteractable,IWorldNode
{
public GameObject gameObject;
public int Id => gameObject.GetInstanceID();
public IWorldInteractable Root => this;
public IWorldInteractionType InteractionType => null;
public object WorldObject
{
get => gameObject;
set => throw new NotImplementedException("Can do that");
}
}
}
#endif

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7903acca495ae074c9721dca1fc60a77
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: