-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvents.cs
More file actions
26 lines (23 loc) · 692 Bytes
/
Events.cs
File metadata and controls
26 lines (23 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GHPC.Event;
using UnityEngine;
namespace CustomMissionUtility.Events
{
public class MissionEvent {
GameObject event_holder;
public GhpcEvent m_event;
public MissionEvent(GhpcEvent.EventTriggerOperatorMode mode) {
event_holder = new GameObject();
m_event = event_holder.AddComponent<GhpcEvent>();
m_event._label = "";
m_event._mode = mode;
}
public T Add<T>() {
return (T) Convert.ChangeType(event_holder.AddComponent(typeof(T)), typeof(T));
}
}
}