This commit is contained in:
CortexCore
2023-10-06 23:43:19 +08:00
parent ebf9c1f526
commit 2c4710bc5d
186 changed files with 111802 additions and 764 deletions

View File

@@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit
{
public class ExecuteCommand : MonoBehaviour
{
public string command;
[SerializeReference, SubclassSelector] private IReference format;
public void Execute()
{
Data.Set("Cmd", command);
}
public void Execute(string cmd)
{
if(format!=null)
cmd = format.Value.Replace("{x}",cmd);
BITCommands.Excute(cmd);
}
}
}