oh yeah i did things idrm
This commit is contained in:
parent
d258d454a8
commit
cf9bdbcddc
5 changed files with 31 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ using UnityEngine;
|
|||
using AnimatorAsCode.V1;
|
||||
using System.Collections.Generic;
|
||||
using gay.lilyy.aaccore;
|
||||
using gay.lilyy.aacshared.runtimecomponents;
|
||||
|
||||
namespace gay.lilyy.aacshared.layers
|
||||
{
|
||||
|
|
@ -29,6 +30,9 @@ namespace gay.lilyy.aacshared.layers
|
|||
|
||||
public override bool IsApplicable(AACAssets assets)
|
||||
{
|
||||
var definition = assets.ctx.AvatarRootObject.GetComponent<LanternFlickerDefinition>();
|
||||
if (definition == null) return false;
|
||||
if (!definition.enabled) return false;
|
||||
var lamp = GetLantern(assets);
|
||||
if (lamp == null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ using UnityEditor;
|
|||
|
||||
namespace gay.lilyy.aacshared.runtimecomponents
|
||||
{
|
||||
[AddComponentMenu("LillithRosePup/Child Toggle")]
|
||||
public class ChildToggleDefinition : MonoBehaviour, IEditorOnly {
|
||||
|
||||
// unity needs this to show the enable/disable box
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using VRC.SDKBase;
|
|||
|
||||
namespace gay.lilyy.aacshared.runtimecomponents
|
||||
{
|
||||
[AddComponentMenu("LillithRosePup/Floater")]
|
||||
public class FloaterDefinition: MonoBehaviour, IEditorOnly {
|
||||
|
||||
// unity needs this to show the enable/disable box
|
||||
|
|
|
|||
14
AAC/AACShared/Runtime/LanternFlickerDefinition.cs
Normal file
14
AAC/AACShared/Runtime/LanternFlickerDefinition.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using VRC.SDKBase;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
namespace gay.lilyy.aacshared.runtimecomponents
|
||||
{
|
||||
[AddComponentMenu("LillithRosePup/Lantern Flicker")]
|
||||
public class LanternFlickerDefinition : MonoBehaviour, IEditorOnly {
|
||||
public bool enabled = true;
|
||||
}
|
||||
}
|
||||
11
AAC/AACShared/Runtime/LanternFlickerDefinition.cs.meta
Normal file
11
AAC/AACShared/Runtime/LanternFlickerDefinition.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cb97112969463744bbb4e68b3021902b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue