10 if ( !m_OnEnterInvoker )
12 return m_OnEnterInvoker;
17 if ( !m_OnLeaveInvoker )
19 return m_OnLeaveInvoker;
28 #ifdef TRIGGER_DEBUG_BASIC
32 OnEnterBeginEvent(insider);
35 m_OnEnterInvoker.Invoke(insider);
38 OnEnterServerEvent(insider);
40 OnEnterClientEvent(insider);
42 OnEnterEndEvent(insider);
53 protected void StayStart(
int nrOfInsiders)
56 #ifdef TRIGGER_DEBUG_SPAM
57 Debug.TriggerLog(nrOfInsiders.ToString(),
"TriggerEvents",
"",
"StayStart",
GetDebugName(
this));
60 OnStayStartBeginEvent(nrOfInsiders);
63 OnStayStartServerEvent(nrOfInsiders);
65 OnStayStartClientEvent(nrOfInsiders);
67 OnStayStartEndEvent(nrOfInsiders);
69 protected void OnStayStartBeginEvent(
int nrOfInsiders) {}
70 protected void OnStayStartServerEvent(
int nrOfInsiders) {}
71 protected void OnStayStartClientEvent(
int nrOfInsiders) {}
72 protected void OnStayStartEndEvent(
int nrOfInsiders) {}
81 #ifdef TRIGGER_DEBUG_SPAM
85 OnStayBeginEvent(insider, deltaTime);
88 OnStayServerEvent(insider, deltaTime);
90 OnStayClientEvent(insider, deltaTime);
92 OnStayEndEvent(insider, deltaTime);
94 protected void OnStayBeginEvent(
TriggerInsider insider,
float deltaTime) {}
95 protected void OnStayServerEvent(
TriggerInsider insider,
float deltaTime) {}
96 protected void OnStayClientEvent(
TriggerInsider insider,
float deltaTime) {}
97 protected void OnStayEndEvent(
TriggerInsider insider,
float deltaTime) {}
103 protected void StayFinish()
106 #ifdef TRIGGER_DEBUG_SPAM
110 OnStayFinishBeginEvent();
113 OnStayFinishServerEvent();
115 OnStayFinishClientEvent();
117 OnStayFinishEndEvent();
119 protected void OnStayFinishBeginEvent() {}
120 protected void OnStayFinishServerEvent() {}
121 protected void OnStayFinishClientEvent() {}
122 protected void OnStayFinishEndEvent() {}
131 #ifdef TRIGGER_DEBUG_BASIC
135 OnLeaveBeginEvent(insider);
137 if (m_OnLeaveInvoker)
138 m_OnLeaveInvoker.Invoke(insider);
141 OnLeaveServerEvent(insider);
143 OnLeaveClientEvent(insider);
145 OnLeaveEndEvent(insider);