Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Added "Event" suffix to OnMouse*
Browse files Browse the repository at this point in the history
  • Loading branch information
andoowhy committed Mar 5, 2017
1 parent 648b99d commit b38160f
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Components/MonoBehavior Messages/OnMouseDownComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void Awake()

void OnMouseDown()
{
var onMouseDownEvent = new MouseDown( egoComponent );
EgoEvents<MouseDown>.AddEvent( onMouseDownEvent );
var onMouseDownEvent = new MouseDownEvent( egoComponent );
EgoEvents<MouseDownEvent>.AddEvent( onMouseDownEvent );
}
}
4 changes: 2 additions & 2 deletions Components/MonoBehavior Messages/OnMouseDragComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void Awake()

void OnMouseDrag()
{
var onMouseDownEvent = new MouseDrag( egoComponent );
EgoEvents<MouseDrag>.AddEvent( onMouseDownEvent );
var onMouseDownEvent = new MouseDragEvent( egoComponent );
EgoEvents<MouseDragEvent>.AddEvent( onMouseDownEvent );
}
}
4 changes: 2 additions & 2 deletions Components/MonoBehavior Messages/OnMouseEnterComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void Awake()

void OnMouseEnter()
{
var onMouseDownEvent = new MouseEnter( egoComponent );
EgoEvents<MouseEnter>.AddEvent( onMouseDownEvent );
var onMouseDownEvent = new MouseEnterEvent( egoComponent );
EgoEvents<MouseEnterEvent>.AddEvent( onMouseDownEvent );
}
}
4 changes: 2 additions & 2 deletions Components/MonoBehavior Messages/OnMouseExitComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void Awake()

void OnMouseExit()
{
var onMouseDownEvent = new MouseExit( egoComponent );
EgoEvents<MouseExit>.AddEvent( onMouseDownEvent );
var onMouseDownEvent = new MouseExitEvent( egoComponent );
EgoEvents<MouseExitEvent>.AddEvent( onMouseDownEvent );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void Awake()

void OnMouseUpAsButton()
{
var onMouseDownEvent = new MouseUpAsButton( egoComponent );
EgoEvents<MouseUpAsButton>.AddEvent( onMouseDownEvent );
var onMouseDownEvent = new MouseUpAsButtonEvent( egoComponent );
EgoEvents<MouseUpAsButtonEvent>.AddEvent( onMouseDownEvent );
}
}
4 changes: 2 additions & 2 deletions Components/MonoBehavior Messages/OnMouseUpComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void Awake()

void OnMouseUp()
{
var onMouseDownEvent = new MouseUp( egoComponent );
EgoEvents<MouseUp>.AddEvent( onMouseDownEvent );
var onMouseDownEvent = new MouseUpEvent( egoComponent );
EgoEvents<MouseUpEvent>.AddEvent( onMouseDownEvent );
}
}
4 changes: 2 additions & 2 deletions Events/MonoBehavior Messages/MouseDown.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using UnityEngine;

public class MouseDown : EgoEvent
public class MouseDownEvent : EgoEvent
{
public readonly EgoComponent egoComponent;

public MouseDown( EgoComponent egoComponent )
public MouseDownEvent( EgoComponent egoComponent )
{
this.egoComponent = egoComponent;
}
Expand Down
4 changes: 2 additions & 2 deletions Events/MonoBehavior Messages/MouseDrag.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using UnityEngine;

public class MouseDrag : EgoEvent
public class MouseDragEvent : EgoEvent
{
public readonly EgoComponent egoComponent;

public MouseDrag( EgoComponent egoComponent )
public MouseDragEvent( EgoComponent egoComponent )
{
this.egoComponent = egoComponent;
}
Expand Down
4 changes: 2 additions & 2 deletions Events/MonoBehavior Messages/MouseEnter.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using UnityEngine;

public class MouseEnter : EgoEvent
public class MouseEnterEvent : EgoEvent
{
public readonly EgoComponent egoComponent;

public MouseEnter( EgoComponent egoComponent )
public MouseEnterEvent( EgoComponent egoComponent )
{
this.egoComponent = egoComponent;
}
Expand Down
4 changes: 2 additions & 2 deletions Events/MonoBehavior Messages/MouseExit.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using UnityEngine;

public class MouseExit : EgoEvent
public class MouseExitEvent : EgoEvent
{
public readonly EgoComponent egoComponent;

public MouseExit( EgoComponent egoComponent )
public MouseExitEvent( EgoComponent egoComponent )
{
this.egoComponent = egoComponent;
}
Expand Down
4 changes: 2 additions & 2 deletions Events/MonoBehavior Messages/MouseUp.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using UnityEngine;

public class MouseUp : EgoEvent
public class MouseUpEvent : EgoEvent
{
public readonly EgoComponent egoComponent;

public MouseUp( EgoComponent egoComponent )
public MouseUpEvent( EgoComponent egoComponent )
{
this.egoComponent = egoComponent;
}
Expand Down
4 changes: 2 additions & 2 deletions Events/MonoBehavior Messages/MouseUpAsButton.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using UnityEngine;

public class MouseUpAsButton : EgoEvent
public class MouseUpAsButtonEvent : EgoEvent
{
public readonly EgoComponent egoComponent;

public MouseUpAsButton( EgoComponent egoComponent )
public MouseUpAsButtonEvent( EgoComponent egoComponent )
{
this.egoComponent = egoComponent;
}
Expand Down

0 comments on commit b38160f

Please sign in to comment.