fr.jeanf.eventsystem 0.1.124 → 0.1.125

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.
@@ -9,6 +9,9 @@ namespace jeanf.EventSystem
9
9
  public Transform targetDestination;
10
10
  public bool isUsingFilter;
11
11
  public FilterSO filter;
12
+ public bool shouldFade; // screen fade in/out during teleport
13
+
14
+ // fade is activated by default if we don't specify otherwise
12
15
  public TeleportInformation(Transform objectToTeleport, Transform targetDestination, bool objectIsPlayer, FilterSO filter, bool isUsingFilter)
13
16
  {
14
17
  this.objectToTeleport = objectToTeleport;
@@ -16,6 +19,18 @@ namespace jeanf.EventSystem
16
19
  this.objectIsPlayer = objectIsPlayer;
17
20
  this.filter = filter;
18
21
  this.isUsingFilter = isUsingFilter;
22
+ this.shouldFade = true;
23
+ }
24
+
25
+ // here we can specify to desactivate the fade using the shouldFade parameter
26
+ public TeleportInformation(Transform objectToTeleport, Transform targetDestination, bool objectIsPlayer, FilterSO filter, bool isUsingFilter, bool shouldFade)
27
+ {
28
+ this.objectToTeleport = objectToTeleport;
29
+ this.targetDestination = targetDestination;
30
+ this.objectIsPlayer = objectIsPlayer;
31
+ this.filter = filter;
32
+ this.isUsingFilter = isUsingFilter;
33
+ this.shouldFade = shouldFade;
19
34
  }
20
35
  }
21
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fr.jeanf.eventsystem",
3
- "version": "0.1.124",
3
+ "version": "0.1.125",
4
4
  "displayName": "Event System",
5
5
  "description": "This package contains a basic Event System based on Scriptable Objects as communication medium",
6
6
  "unity": "2021.3",