Files
Net.Project.B/Src/WorldNode/UnityDoorNode.cs

36 lines
821 B
C#
Raw Normal View History

2024-11-23 17:20:13 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
2025-03-03 18:43:55 +08:00
using Net.Project.B.Interaction;
2024-11-23 17:20:13 +08:00
#if UNITY_5_3_OR_NEWER
using UnityEngine;
#endif
namespace Net.Project.B.WorldNode
{
public enum UnityDoorState
{
NoState,
Opened,
Closed,
Disabled,
Locked,
}
[Serializable]
2025-03-03 18:43:55 +08:00
public class UnityDoorNode:IWorldNode
2024-11-23 17:20:13 +08:00
{
public int Id { get; set; }
public object WorldObject { get; set; }
public UnityDoorState State;
2025-03-03 18:43:55 +08:00
public WorldInteractionProcess InteractionType;
2024-11-23 17:20:13 +08:00
#if UNITY_5_3_OR_NEWER
2025-03-03 18:43:55 +08:00
public Transform DoorTransform;
2024-11-23 17:20:13 +08:00
public Vector3 OpenPosition;
public Vector3 ClosePosition;
public Vector3 OpenEulerAngles;
public Vector3 CloseEulerAngles;
#endif
}
}