1
This commit is contained in:
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
|
Reference in New Issue
Block a user