refactoring multiplayer
This commit is contained in:
@@ -40,6 +40,7 @@ namespace RebootReality.jelycho {
|
||||
}
|
||||
|
||||
m_LastPressTime = DateTime.UtcNow;
|
||||
PlayPressAnimation();
|
||||
|
||||
SendActorEvent((ushort) ButtonActorEvents.Pressed);
|
||||
pressed?.Invoke();
|
||||
@@ -49,6 +50,8 @@ namespace RebootReality.jelycho {
|
||||
protected override void OnActorEventClient(ActorEvent actorEvent) {
|
||||
if (actorEvent.EventID == (ushort) ButtonActorEvents.Pressed) {
|
||||
PlayPressAnimation();
|
||||
} else {
|
||||
s_Logger.Error($"Unknown actor event: {actorEvent.EventID}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user