cvr-props/Assets/ABI.CCK/Components/CVRToggleStateTrigger.cs
2023-01-22 16:38:23 +01:00

28 lines
No EOL
748 B
C#
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using UnityEngine;
namespace ABI.CCK.Components
{
public class CVRToggleStateTrigger : MonoBehaviour
{
public Vector3 areaSize = new Vector3(0.05f, 0.05f, 0.05f);
public Vector3 areaOffset = Vector3.zero;
public int toggleStateID = 0;
public void Trigger()
{
}
private void OnDrawGizmos()
{
if (isActiveAndEnabled)
{
Gizmos.color = Color.green;
Matrix4x4 rotationMatrix = Matrix4x4.TRS(transform.position, transform.rotation, transform.lossyScale);
Gizmos.matrix = rotationMatrix;
Gizmos.DrawCube(areaOffset, areaSize);
}
}
}
}