1
This commit is contained in:
@@ -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
|
||||
}
|
@@ -13,6 +13,7 @@ namespace Net.Project.B.Interaction
|
||||
Tap,
|
||||
Hold,
|
||||
Performed,
|
||||
System,
|
||||
}
|
||||
/// <summary>
|
||||
/// 可互动类型
|
||||
|
25
Src/Interaction/WorldInteractable.cs
Normal file
25
Src/Interaction/WorldInteractable.cs
Normal 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
|
11
Src/Interaction/WorldInteractable.cs.meta
Normal file
11
Src/Interaction/WorldInteractable.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7903acca495ae074c9721dca1fc60a77
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user