chore: delete dead code (#470)

This commit is contained in:
bd_ 2023-10-06 19:21:43 +09:00 committed by GitHub
parent 55e662be66
commit 8b60cdb6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 26 deletions

View File

@ -36,18 +36,6 @@ namespace nadena.dev.modular_avatar.core
{
internal static event Action OnChangeAction;
private void Awake()
{
if (!RuntimeUtil.isPlaying || this == null) return;
RuntimeUtil.OnDemandProcessAvatar(RuntimeUtil.OnDemandSource.Awake, this);
}
private void Start()
{
if (!RuntimeUtil.isPlaying || this == null) return;
RuntimeUtil.OnDemandProcessAvatar(RuntimeUtil.OnDemandSource.Start, this);
}
protected virtual void OnValidate()
{
if (RuntimeUtil.isPlaying) return;

View File

@ -46,16 +46,6 @@ namespace nadena.dev.modular_avatar.core
OnMenuInvalidate?.Invoke();
}
public enum OnDemandSource
{
Awake,
Start
}
public delegate void OnDemandProcessAvatarDelegate(OnDemandSource source, MonoBehaviour component);
public static OnDemandProcessAvatarDelegate OnDemandProcessAvatar = (_m, _c) => { };
internal static T GetOrAddComponent<T>(this Component self) where T : Component
{
var component = self.GetComponent<T>();