Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 95eb005

Browse files
committed
Add game events with commonly used implementations
1 parent 11a9957 commit 95eb005

File tree

75 files changed

+750
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+750
-0
lines changed

Runtime/GameEvents.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/GameEvents/Bool.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using UnityEngine.Events;
3+
4+
namespace GameEvents.Bool
5+
{
6+
[Serializable]
7+
public class BoolEvent : UnityEvent<bool>
8+
{
9+
}
10+
}

Runtime/GameEvents/Bool/BoolEvent.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using GameEvents.Generic;
2+
using UnityEngine;
3+
4+
namespace GameEvents.Bool
5+
{
6+
[CreateAssetMenu(fileName = "BoolGameEvent", menuName = "Game Events/Bool Game Event")]
7+
public class BoolGameEvent : ArgumentGameEvent<bool>
8+
{
9+
}
10+
}

Runtime/GameEvents/Bool/BoolGameEvent.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using GameEvents.Generic;
2+
using UnityEngine;
3+
4+
namespace GameEvents.Bool
5+
{
6+
[AddComponentMenu("Game Events/Bool Game Event Listener")]
7+
public class BoolGameEventListener : ArgumentGameEventListener<BoolGameEvent, BoolEvent, bool>
8+
{
9+
}
10+
}

Runtime/GameEvents/Bool/BoolGameEventListener.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/GameEvents/Float.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using UnityEngine.Events;
3+
4+
namespace GameEvents.Float
5+
{
6+
[Serializable]
7+
public class FloatEvent : UnityEvent<float>
8+
{
9+
}
10+
}

0 commit comments

Comments
 (0)