This commit is contained in:
2025-07-17 06:36:55 +02:00
parent d1239ca70b
commit faf4bd1ca9
23 changed files with 86 additions and 240 deletions

View File

@@ -16,8 +16,6 @@ namespace RebootReality.jelycho.Items {
[field: SerializeField] public ItemConfig Config { get; private set; }
[SerializeField] Outline m_Outline;
//
// @MARK: Unity callbacks
//
@@ -38,12 +36,6 @@ namespace RebootReality.jelycho.Items {
// @MARK: IInteractable
//
public void SetHighlight(bool highlight) {
if (m_Outline == null) {
s_Logger.Error("ItemActor does not have an Outline component.");
return;
}
m_Outline.enabled = highlight;
}
public void Interact() { }

View File

@@ -27,12 +27,12 @@ namespace RebootReality.jelycho.Items {
[SerializeField] TMP_Text m_TimerText;
public override void ServerTick(float deltaTime) {
base.ServerTick(deltaTime);
public override void OnServerTick(float deltaTime) {
base.OnServerTick(deltaTime);
}
public override void ClientTick(float deltaTime) {
base.ClientTick(deltaTime);
public override void OnClientTick(float deltaTime) {
base.OnClientTick(deltaTime);
m_TimerText.text = DataAs<WorkbenchActorData>().SelectedRecipeIndex.ToString();
}