mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
|
@ -1,61 +0,0 @@
|
|||
using NAK.CVRGizmos.GismoTypes;
|
||||
using UnityEngine;
|
||||
using Gizmos = Popcron.Gizmos;
|
||||
|
||||
namespace NAK.CVRGizmos
|
||||
{
|
||||
public class CVRGizmoManager : MonoBehaviour
|
||||
{
|
||||
public static CVRGizmoManager Instance;
|
||||
|
||||
public bool g_enabled = false;
|
||||
public bool g_localOnly = false;
|
||||
|
||||
public MonoBehaviour[] managed;
|
||||
|
||||
public System.Type[] GizmoTypes = {
|
||||
typeof(CVRGizmos_Pointer),
|
||||
typeof(CVRGizmos_AdvancedAvatarSettingsTrigger),
|
||||
typeof(CVRGizmos_SpawnableTrigger),
|
||||
typeof(CVRGizmos_AdvancedAvatarSettingsPointer),
|
||||
typeof(CVRGizmos_DistanceLod),
|
||||
typeof(CVRGizmos_HapticZone),
|
||||
typeof(CVRGizmos_HapticAreaChest),
|
||||
typeof(CVRGizmos_ToggleStateTrigger),
|
||||
typeof(CVRGizmos_Avatar),
|
||||
typeof(CVRGizmos_AvatarPickupMarker),
|
||||
typeof(CVRGizmos_DistanceConstrain),
|
||||
typeof(CVRGizmos_BoxCollider),
|
||||
typeof(CVRGizmos_SphereCollider),
|
||||
typeof(CVRGizmos_CapsuleCollider),
|
||||
};
|
||||
|
||||
private void Start()
|
||||
{
|
||||
CVRGizmoManager.Instance = this;
|
||||
managed = new MonoBehaviour[GizmoTypes.Count()];
|
||||
for (int i = 0; i < GizmoTypes.Count(); i++)
|
||||
{
|
||||
managed[i] = gameObject.AddComponent(GizmoTypes[i]) as MonoBehaviour;
|
||||
}
|
||||
}
|
||||
|
||||
public void EnableGizmos(bool able)
|
||||
{
|
||||
for (int i = 0; i < GizmoTypes.Count(); i++)
|
||||
{
|
||||
managed[i].enabled = able;
|
||||
Gizmos.Enabled = able;
|
||||
}
|
||||
RefreshGizmos();
|
||||
}
|
||||
|
||||
public void RefreshGizmos()
|
||||
{
|
||||
for (int i = 0; i < GizmoTypes.Count(); i++)
|
||||
{
|
||||
managed[i].Invoke("CacheGizmos", 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue