This commit is contained in:
CortexCore
2023-11-06 01:17:23 +08:00
parent bd40165ade
commit 5446067f91
114 changed files with 2023 additions and 414 deletions

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
namespace BITKit
{
public class PhysicsDoor : MonoBehaviour, IAction
public class PhysicsDoor : MonoBehaviour, IAction,IDescription
{
public enum State
{
@@ -12,7 +12,7 @@ namespace BITKit
HalfOpen,
Locked,
}
[SerializeField] private string description;
[SerializeField] private bool allowPhysics = true;
[SerializeField] private Rigidbody root;
[SerializeField] private Vector3 openEuler;
@@ -69,5 +69,6 @@ namespace BITKit
};
Set(isClosed);
}
public string Name => description;
}
}