refactor
This commit is contained in:
@@ -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() { }
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user