Skip to content

Commit

Permalink
fix(Notifications): remove debug log in UGUI render
Browse files Browse the repository at this point in the history
  • Loading branch information
Iam1337 committed Sep 29, 2021
1 parent 6e2960f commit e826f0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Assets/extDebug/Scripts/Menu/DMUGUIRender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace extDebug.Menu
{
// TODO: Move to extDebug.UGUI repo
public class DMUGUIRender : IDMRender, IDMRender_Update
{
#region Private Vars
Expand Down
1 change: 1 addition & 0 deletions Assets/extDebug/Scripts/Notifications/DNUGUIItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace extDebug.Notifications
{
// TODO: Move to extDebug.UGUI repo
public class DNUGUIItem : MonoBehaviour
{
#region Public Vars
Expand Down
4 changes: 2 additions & 2 deletions Assets/extDebug/Scripts/Notifications/DNUGUIRender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

namespace extDebug.Notifications
{
// TODO: Rename
public enum DNUGUIAnimation
{
Default,
VR
}

// TODO: Move to extDebug.UGUI repo
public class DNUGUIRender : IDNRender
{
#region Public Vars
Expand Down Expand Up @@ -89,8 +91,6 @@ void IDNRender.Repaint(DNNotice notice, float timeLeft, ref float currentHeight)
targetX = _animation == DNUGUIAnimation.Default ? -ItemsOffset.x : 0;
targetY = _animation == DNUGUIAnimation.Default ? height - currentHeight - ItemsOffset.y : height + currentHeight;

Debug.Log("T " + targetY);

// Calculate targets
if (timeLeft < 0.2f) targetX += width * 2;
else if (timeLeft < 0.7f) targetX -= 50;
Expand Down

0 comments on commit e826f0a

Please sign in to comment.