This commit is contained in:
CortexCore
2025-04-14 15:39:24 +08:00
parent 5fceb6f885
commit 3f9d9f19ce
50 changed files with 683 additions and 41 deletions

View File

@@ -16,15 +16,11 @@ namespace Net.Project.B.WorldNode
[SerializeField] private GameObject[] floors;
[SerializeField] private GameObject[] floorButtons;
[SerializeField] private Rigidbody platform;
[SerializeField] private GameObject elevatorButton;
public Rigidbody Platform => platform;
public readonly Dictionary<int, (GameObject floor, GameObject button)> Floors = new();
public void Initialize()
{
for (var index = 0; index < floors.Length; index++)
{
var floor = floors[index];
}
}
public GameObject[] Floors => floors;
public GameObject[] FloorButtons => floorButtons;
public GameObject ElevatorButton => elevatorButton;
#endif
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
#if UNITY_5_3_OR_NEWER
using UnityEngine;
using UnityEngine.Serialization;
namespace Net.Project.B.WorldNode
{
public interface IEvacuateType{}
[Serializable]
public struct HelicopterEvacuate:IEvacuateType
{
public int time;
}
[Serializable]
public class UnityEvacuateNode :IWorldNode
{
[SerializeReference, SubclassSelector] private IEvacuateType evacuateType;
public IEvacuateType EvacuateType => evacuateType;
}
}
#endif

View File

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

View File

@@ -0,0 +1,23 @@
#if UNITY_5_3_OR_NEWER
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
using UnityEngine;
namespace Net.Project.B.WorldNode
{
[Serializable]
public class UnitySubwayNode:IWorldNode
{
[SerializeField] private Rigidbody subway;
[SerializeField] private float speed;
[SerializeField] private Transform spline;
[SerializeField] private Vector3 offset;
public Rigidbody Subway => subway;
public float Speed => speed;
public Transform Spline => spline;
public Vector3 Offset => offset;
}
}
#endif

View File

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

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
#if UNITY_5_3_OR_NEWER
using UnityEngine;
namespace Net.Project.B.WorldNode
{
[Serializable]
public class UnitySubwayPathNode : IWorldNode
{
[SerializeField] private Transform[] platforms;
public Transform[] Platforms => platforms;
}
}
#endif

View File

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

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
#if UNITY_5_3_OR_NEWER
using UnityEngine;
namespace Net.Project.B
{
[Serializable]
public class UnitySubwayPlatformNode : IWorldNode
{
[SerializeField] private int stopTime;
public int StopTime => stopTime;
}
}
#endif

View File

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