1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
29
Src/WorldNode/UnityEvacuateNode.cs
Normal file
29
Src/WorldNode/UnityEvacuateNode.cs
Normal 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
|
11
Src/WorldNode/UnityEvacuateNode.cs.meta
Normal file
11
Src/WorldNode/UnityEvacuateNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a24ba0c7610fe14eb6cfb6c9e2695c1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
23
Src/WorldNode/UnitySubwayNode.cs
Normal file
23
Src/WorldNode/UnitySubwayNode.cs
Normal 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
|
11
Src/WorldNode/UnitySubwayNode.cs.meta
Normal file
11
Src/WorldNode/UnitySubwayNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 66a03ae86cb349b40808fecc8eb0f2bf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
20
Src/WorldNode/UnitySubwayPathNode.cs
Normal file
20
Src/WorldNode/UnitySubwayPathNode.cs
Normal 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
|
11
Src/WorldNode/UnitySubwayPathNode.cs.meta
Normal file
11
Src/WorldNode/UnitySubwayPathNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6414561ed7da36540a4c9d429cced3eb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
23
Src/WorldNode/UnitySubwayPlatformNode.cs
Normal file
23
Src/WorldNode/UnitySubwayPlatformNode.cs
Normal 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
|
11
Src/WorldNode/UnitySubwayPlatformNode.cs.meta
Normal file
11
Src/WorldNode/UnitySubwayPlatformNode.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58b9d89a09f75ac44a079ecbb6d8b9b2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user