15 lines
495 B
C#
15 lines
495 B
C#
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace UVC.UI.Commands.Mono
|
|||
|
|
{
|
|||
|
|
public class MonoBehaviourCommand : MonoBehaviour, ICommand
|
|||
|
|
{
|
|||
|
|
// MonoCommand는 MonoBehaviour를 상속받아 Unity의 생명주기를 활용할 수 있습니다.
|
|||
|
|
// ICommand 인터페이스를 구현하여 명령 패턴을 따릅니다.
|
|||
|
|
public virtual void Execute()
|
|||
|
|
{
|
|||
|
|
// 기본 실행 로직 (필요시 override 가능)
|
|||
|
|
Debug.Log("MonoCommand executed.");
|
|||
|
|
} }
|
|||
|
|
}
|