Skip to content

Commit

Permalink
Merge pull request #37 from Nytra/main
Browse files Browse the repository at this point in the history
Some small fixes: Call base.OnAttach in OnAttach, use full typename in logs instead of hashcode
  • Loading branch information
Xlinka committed Jul 2, 2024
2 parents fb8fe73 + 410076d commit ddf172b
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 ddf172b

Please sign in to comment.