Create folder-CollisionManager and add 1st date with collision--test
This commit is contained in:
parent
a583875540
commit
50c9ef4f19
2 changed files with 16 additions and 13 deletions
|
@ -14,23 +14,26 @@ namespace ZoFo.GameCore.GameManagers.CollisionManager
|
||||||
bool doesStop;
|
bool doesStop;
|
||||||
Rectangle stopRectangle;
|
Rectangle stopRectangle;
|
||||||
|
|
||||||
// --
|
// triggers for rectangle
|
||||||
bool isTrigger;
|
bool isTrigger;
|
||||||
Rectangle triggerRectangle;
|
Rectangle triggerRectangle;
|
||||||
|
|
||||||
//events
|
//delegate
|
||||||
public delegate void EventHandler(object sender, EventArgs e);
|
public delegate void EventHandler(object sender, EventArgs e);
|
||||||
|
|
||||||
|
|
||||||
|
//events
|
||||||
public event EventHandler<CollisionComponent> OnTriggerEnter;
|
public event EventHandler<CollisionComponent> OnTriggerEnter;
|
||||||
public event EventHandler<CollisionComponent> OnTriggerZone;
|
public event EventHandler<CollisionComponent> OnTriggerZone;
|
||||||
public event EventHandler<CollisionComponent> OnTriggerExit;
|
public event EventHandler<CollisionComponent> OnTriggerExit;
|
||||||
|
|
||||||
// methods-event
|
// methods-event
|
||||||
|
//for test
|
||||||
public void TriggerEnter(object component, EventArgs e)
|
public void TriggerEnter(object component, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue