Skip to content

Commit

Permalink
Call base.OnAttach in OnAttach, use full typename in logs instead of …
Browse files Browse the repository at this point in the history
…hashcode
  • Loading branch information
Nytra committed Jul 2, 2024
1 parent fb8fe73 commit 410076d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ButtonAttachComponent : Component, IButtonPressReceiver, IComponent

protected override void OnAttach()
{
base.OnAwake();
base.OnAttach();
Undoable.Value = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private ComponentData RegisterComponentType(Type type, out bool createdEntry)

if (!createdEntry)
{
throw new InvalidOperationException("Component with this Type has already been added! Type: " + GetUniqueId(type));
throw new InvalidOperationException("Component with this Type has already been added! Type: " + type.FullName);
}

return componentData;
Expand Down

0 comments on commit 410076d

Please sign in to comment.