1
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
"GUID:d750d221812bb1d48baff92e6ef73e28",
|
||||
"GUID:49b49c76ee64f6b41bf28ef951cb0e50",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23",
|
||||
"GUID:e527b3ce3106f974585be5134b6200e9"
|
||||
"GUID:e527b3ce3106f974585be5134b6200e9",
|
||||
"GUID:e18d548755c9bc8458ca189e16813742"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
19
Src/WorldNode/UnityLootNode.cs
Normal file
19
Src/WorldNode/UnityLootNode.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit;
|
||||
using BITKit.WorldNode;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Net.Project.B.WorldNode
|
||||
{
|
||||
[Serializable]
|
||||
public class UnityLootNode : IWorldNode
|
||||
{
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
[SerializeReference, SubclassSelector] private IReference lootName;
|
||||
|
||||
public string LootName=> lootName?.Value;
|
||||
#endif
|
||||
}
|
||||
}
|
11
Src/WorldNode/UnityLootNode.cs.meta
Normal file
11
Src/WorldNode/UnityLootNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a83d5eb6b42abc240b0e02db531b618d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
Src/WorldNode/UnityNpcSpawnAreaNode.cs
Normal file
18
Src/WorldNode/UnityNpcSpawnAreaNode.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit.WorldNode;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Net.Project.B.WorldNode
|
||||
{
|
||||
[Serializable]
|
||||
public class UnityNpcSpawnAreaNode : IWorldNode
|
||||
{
|
||||
public float spawnRadius = 20f; // 刷怪区域半径
|
||||
public int maxSpawnPoints = 10; // 最大刷怪点数量
|
||||
public float minDistanceBetweenSpawns = 5f; // 最小刷怪点间距
|
||||
public float clearanceCheckDistance = 3f; // 空旷度检测半径
|
||||
}
|
||||
}
|
||||
|
11
Src/WorldNode/UnityNpcSpawnAreaNode.cs.meta
Normal file
11
Src/WorldNode/UnityNpcSpawnAreaNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b57057f388bc40a4593776c583c4f9cc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user