1
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit;
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
namespace BITFALL.Entities
|
||||
{
|
||||
public class EntityPhysicsComponent : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private new Collider collider;
|
||||
[SerializeField] private new Rigidbody rigidbody;
|
||||
[SerializeField] private Joint joint;
|
||||
public Collider Collider => collider;
|
||||
public Rigidbody Rigidbody => rigidbody;
|
||||
public Joint Joint => joint;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
[BIT]
|
||||
private void SetUp()
|
||||
{
|
||||
collider = GetComponent<Collider>();
|
||||
rigidbody = GetComponent<Rigidbody>();
|
||||
joint = GetComponent<Joint>();
|
||||
EditorUtility.SetDirty(this);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user