From 50c9ef4f190f76ddc749fd4aafcbdaee3f83863a Mon Sep 17 00:00:00 2001 From: PetrKu09 Date: Thu, 15 Aug 2024 10:16:22 +0300 Subject: [PATCH] Create folder-CollisionManager and add 1st date with collision--test --- .../CollisionManager/CollisionComponent.cs | 13 ++++++++----- ZoFo/ZoFo.csproj | 16 ++++++++-------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ZoFo/GameCore/GameManagers/CollisionManager/CollisionComponent.cs b/ZoFo/GameCore/GameManagers/CollisionManager/CollisionComponent.cs index 849ffce..5bcc9ff 100644 --- a/ZoFo/GameCore/GameManagers/CollisionManager/CollisionComponent.cs +++ b/ZoFo/GameCore/GameManagers/CollisionManager/CollisionComponent.cs @@ -14,23 +14,26 @@ namespace ZoFo.GameCore.GameManagers.CollisionManager bool doesStop; Rectangle stopRectangle; - // -- + // triggers for rectangle bool isTrigger; Rectangle triggerRectangle; - //events - public delegate void EventHandler(object sender, EventArgs e); + //delegate + public delegate void EventHandler(object sender, EventArgs e); + + //events public event EventHandler OnTriggerEnter; public event EventHandler OnTriggerZone; public event EventHandler OnTriggerExit; // methods-event - + //for test public void TriggerEnter(object component, EventArgs e) { } - } + + } } diff --git a/ZoFo/ZoFo.csproj b/ZoFo/ZoFo.csproj index ef2682f..e762dae 100644 --- a/ZoFo/ZoFo.csproj +++ b/ZoFo/ZoFo.csproj @@ -11,22 +11,22 @@ Icon.ico - - + + - - + + - - + + - - + + \ No newline at end of file