快捷键操作
This commit is contained in:
@@ -57,9 +57,5 @@ namespace NBF
|
||||
Sort = sort;
|
||||
}
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class UIInputAttribute : BaseAttribute
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
@@ -202,5 +202,11 @@ namespace NBF
|
||||
Debug.LogError($"OnInteractiveObject {interactiveObject != null}");
|
||||
OnInteractiveObjectAction?.Invoke(interactiveObject);
|
||||
}
|
||||
|
||||
public void SendUIInput(string actionName)
|
||||
{
|
||||
OnUIPerformed?.Invoke(actionName);
|
||||
OnUICanceled?.Invoke(actionName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user