fr.jeanf.universal.player 0.8.9 → 0.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,9 +21,11 @@ namespace jeanf.universalplayer
|
|
|
21
21
|
|
|
22
22
|
[Header("Broadcasting on:")]
|
|
23
23
|
[SerializeField] private VoidEventChannelSO cameraResetChannel;
|
|
24
|
+
[SerializeField] private BoolFloatEventChannelSO FadeEventChannel;
|
|
24
25
|
|
|
25
26
|
public void Teleport(TeleportInformation teleportInformation)
|
|
26
27
|
{
|
|
28
|
+
FadeEventChannel?.RaiseEvent(false, 1.0f);
|
|
27
29
|
if (teleportInformation.isUsingFilter)
|
|
28
30
|
{
|
|
29
31
|
if (!listOfFilters.Contains(teleportInformation.filter))
|
|
@@ -64,7 +66,7 @@ namespace jeanf.universalplayer
|
|
|
64
66
|
|
|
65
67
|
if ( teleportInformation.objectIsPlayer ) cameraResetChannel.RaiseEvent();
|
|
66
68
|
if (_isDebug) Debug.Log( $"[{teleportInformation.targetDestination.gameObject.name}] teleported {teleportSubject.gameObject.name} to {teleportInformation.targetDestination.transform.position} with rotation: {teleportInformation.targetDestination.transform.rotation.eulerAngles}");
|
|
67
|
-
|
|
69
|
+
FadeEventChannel?.RaiseEvent(true, 1.0f);
|
|
68
70
|
|
|
69
71
|
}
|
|
70
72
|
}
|