Net.Project.B/Src/WorldNode/UnityElevatorNode.cs

28 lines
735 B
C#
Raw Normal View History

2025-02-24 23:02:49 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit.WorldNode;
#if UNITY_5_3_OR_NEWER
using UnityEngine;
#endif
namespace Net.Project.B.WorldNode
{
[Serializable]
public class UnityElevatorNode : IWorldNode
{
#if UNITY_5_3_OR_NEWER
[SerializeField] private GameObject[] floors;
[SerializeField] private GameObject[] floorButtons;
[SerializeField] private Rigidbody platform;
2025-04-14 15:39:24 +08:00
[SerializeField] private GameObject elevatorButton;
2025-02-24 23:02:49 +08:00
public Rigidbody Platform => platform;
2025-04-14 15:39:24 +08:00
public GameObject[] Floors => floors;
public GameObject[] FloorButtons => floorButtons;
public GameObject ElevatorButton => elevatorButton;
2025-02-24 23:02:49 +08:00
#endif
}
}