Add assets

This commit is contained in:
2025-05-08 16:03:30 +09:00
parent cd4ebdb0a7
commit 57b037e0a9
977 changed files with 91747 additions and 28 deletions

View File

@@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cainos.LucidEditor;
namespace Cainos.PixelArtPlatformer_VillageProps
{
public class Chest : MonoBehaviour
{
[FoldoutGroup("Reference")]
public Animator animator;
[FoldoutGroup("Runtime"), ShowInInspector, DisableInEditMode]
public bool IsOpened
{
get { return isOpened; }
set
{
isOpened = value;
animator.SetBool("IsOpened", isOpened);
}
}
private bool isOpened;
[FoldoutGroup("Runtime"),Button("Open"), HorizontalGroup("Runtime/Button")]
public void Open()
{
IsOpened = true;
}
[FoldoutGroup("Runtime"), Button("Close"), HorizontalGroup("Runtime/Button")]
public void Close()
{
IsOpened = false;
}
}
}