2024-08-04 10:56:07 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace nadena.dev.modular_avatar.core
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public struct ToggledObject
|
|
|
|
|
{
|
|
|
|
|
public AvatarObjectReference Object;
|
|
|
|
|
public bool Active;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[AddComponentMenu("Modular Avatar/MA Object Toggle")]
|
|
|
|
|
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/object-toggle?lang=auto")]
|
2024-08-05 10:31:43 +08:00
|
|
|
|
public class ModularAvatarObjectToggle : ReactiveComponent
|
2024-08-04 10:56:07 +08:00
|
|
|
|
{
|
|
|
|
|
[SerializeField] private List<ToggledObject> m_objects = new();
|
|
|
|
|
|
|
|
|
|
public List<ToggledObject> Objects
|
|
|
|
|
{
|
|
|
|
|
get => m_objects;
|
|
|
|
|
set => m_objects = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|