net.dreditor.flairs 0.1.6 → 0.1.7
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.
- package/.attestation.p7m +0 -0
- package/DREditor.Flairs.asmdef +18 -18
- package/DREditor.Flairs.asmdef.meta +7 -7
- package/DestroyFlairHandler.cs +89 -89
- package/DestroyFlairHandler.cs.meta +1 -1
- package/DestroyFlairOnDirectorComplete.cs +73 -73
- package/DestroyFlairOnDirectorComplete.cs.meta +11 -11
- package/DestroyFlairOnNextLine.cs +77 -77
- package/DestroyFlairOnNextLine.cs.meta +1 -1
- package/Editor/AllCharactersOption.cs +42 -42
- package/Editor/AllCharactersOption.cs.meta +1 -1
- package/Editor/AllFlairsOneCharacterOption.cs +46 -46
- package/Editor/AllFlairsOneCharacterOption.cs.meta +1 -1
- package/Editor/AllSpritesOption.cs +53 -53
- package/Editor/AllSpritesOption.cs.meta +1 -1
- package/Editor/DREditor.Flairs.Editor.asmdef +17 -17
- package/Editor/DREditor.Flairs.Editor.asmdef.meta +7 -7
- package/Editor/FlairEditorTools.cs +86 -86
- package/Editor/FlairEditorTools.cs.meta +1 -1
- package/Editor/GenerateFlairDebugDialogue.cs +61 -61
- package/Editor/GenerateFlairDebugDialogue.cs.meta +1 -1
- package/Editor/GenerateFlairDialogueOptionBase.cs +111 -111
- package/Editor/GenerateFlairDialogueOptionBase.cs.meta +1 -1
- package/Editor/IGenerateFlairDialogueSetting.cs +18 -18
- package/Editor/IGenerateFlairDialogueSetting.cs.meta +1 -1
- package/Editor.meta +8 -8
- package/EnableFlairCanvas.cs +77 -77
- package/EnableFlairCanvas.cs.meta +1 -1
- package/FadeFlairDestroyer.cs +58 -58
- package/FadeFlairDestroyer.cs.meta +1 -1
- package/Flair.cs +31 -31
- package/Flair.cs.meta +1 -1
- package/FlairDestroyer.cs +26 -26
- package/FlairDestroyer.cs.meta +1 -1
- package/FlairEvent.cs +45 -45
- package/FlairEvent.cs.meta +1 -1
- package/FlairEventHandler.cs +33 -33
- package/FlairEventHandler.cs.meta +1 -1
- package/FlairOffset.cs +47 -47
- package/FlairOffset.cs.meta +1 -1
- package/FlairSpawner.cs +28 -28
- package/FlairSpawner.cs.meta +1 -1
- package/FlairSpawnerBase.cs +16 -16
- package/FlairSpawnerBase.cs.meta +1 -1
- package/FlairStrategy.cs +48 -48
- package/FlairStrategy.cs.meta +1 -1
- package/FlairStrategyBase.cs +57 -57
- package/FlairStrategyBase.cs.meta +1 -1
- package/Flair_Question.controller +72 -72
- package/Flair_Question.controller.meta +8 -8
- package/Flair_QuestionAnim.anim +693 -693
- package/Flair_QuestionAnim.anim.meta +8 -8
- package/Flair_QuestionTimeline.playable +2198 -2198
- package/Flair_QuestionTimeline.playable.meta +8 -8
- package/IFlair.cs +16 -16
- package/IFlair.cs.meta +1 -1
- package/IFlairDestroyable.cs +15 -15
- package/IFlairDestroyable.cs.meta +1 -1
- package/IFlairEvent.cs +29 -29
- package/IFlairEvent.cs.meta +1 -1
- package/IFlairSetting.cs +16 -16
- package/IFlairSetting.cs.meta +1 -1
- package/IFlairSpawnStep.cs +17 -17
- package/IFlairSpawnStep.cs.meta +1 -1
- package/IFlairStep.cs +17 -17
- package/IFlairStep.cs.meta +1 -1
- package/LayerFlair.cs +38 -38
- package/LayerFlair.cs.meta +1 -1
- package/ProtagFlairStrategy.cs +68 -68
- package/ProtagFlairStrategy.cs.meta +1 -1
- package/{Samples → Samples~}/Flair.prefab +145 -145
- package/{Samples → Samples~}/Flair.prefab.meta +7 -7
- package/{Samples → Samples~}/Flair_Event_Handler.prefab +238 -238
- package/{Samples → Samples~}/Flair_Event_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/Flair_Question.asset +15 -15
- package/{Samples → Samples~}/Flair_Question.asset.meta +8 -8
- package/{Samples → Samples~}/Flair_Question.prefab +412 -412
- package/{Samples → Samples~}/Flair_Question.prefab.meta +7 -7
- package/{Samples → Samples~}/Flair_Strategy.prefab +64 -64
- package/{Samples → Samples~}/Flair_Strategy.prefab.meta +7 -7
- package/{Samples → Samples~}/Protag_Flair_Strategy.prefab +186 -186
- package/{Samples → Samples~}/Protag_Flair_Strategy.prefab.meta +7 -7
- package/SpawnFlairOnHead.cs +36 -36
- package/SpawnFlairOnHead.cs.meta +1 -1
- package/SpawnFlairOnParent.cs +24 -24
- package/SpawnFlairOnParent.cs.meta +1 -1
- package/SpawnFlairStepBase.cs +44 -44
- package/SpawnFlairStepBase.cs.meta +1 -1
- package/SpawnFlairToParent.cs +38 -38
- package/SpawnFlairToParent.cs.meta +1 -1
- package/package.json +41 -36
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 1739e306b9395a3418cfac1dfd5fa990
|
|
3
|
-
NativeFormatImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
mainObjectFileID: 0
|
|
6
|
-
userData:
|
|
7
|
-
assetBundleName:
|
|
8
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 1739e306b9395a3418cfac1dfd5fa990
|
|
3
|
+
NativeFormatImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
mainObjectFileID: 0
|
|
6
|
+
userData:
|
|
7
|
+
assetBundleName:
|
|
8
|
+
assetBundleVariant:
|
package/IFlair.cs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.Flairs
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public interface IFlair
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
/// <returns></returns>
|
|
15
|
-
GameObject GetPrefab();
|
|
16
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.Flairs
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public interface IFlair
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
/// <returns></returns>
|
|
15
|
+
GameObject GetPrefab();
|
|
16
|
+
}
|
|
17
17
|
}
|
package/IFlair.cs.meta
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 32579bff9f7bbbb4fa6c44fb8b54edca
|
package/IFlairDestroyable.cs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using UnityEngine.Events;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.Flairs
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public interface IFlairDestroyable
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
UnityEvent<IFlairDestroyable> OnFlairDestroyed { get; }
|
|
15
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using UnityEngine.Events;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.Flairs
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public interface IFlairDestroyable
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
UnityEvent<IFlairDestroyable> OnFlairDestroyed { get; }
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 6f9d90a363338da4cb62dc6958b761e3
|
package/IFlairEvent.cs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
|
|
5
|
-
namespace DREditor.Flairs
|
|
6
|
-
{
|
|
7
|
-
/// <summary>
|
|
8
|
-
///
|
|
9
|
-
/// </summary>
|
|
10
|
-
public interface IFlairEvent
|
|
11
|
-
{
|
|
12
|
-
/// <summary>
|
|
13
|
-
///
|
|
14
|
-
/// </summary>
|
|
15
|
-
/// <returns></returns>
|
|
16
|
-
IFlair GetFlair();
|
|
17
|
-
|
|
18
|
-
/// <summary>
|
|
19
|
-
///
|
|
20
|
-
/// </summary>
|
|
21
|
-
/// <returns></returns>
|
|
22
|
-
List<IFlairSetting> GetSettings();
|
|
23
|
-
|
|
24
|
-
/// <summary>
|
|
25
|
-
///
|
|
26
|
-
/// </summary>
|
|
27
|
-
/// <param name="spawnedFlair"></param>
|
|
28
|
-
void ApplySettings(GameObject spawnedFlair);
|
|
29
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace DREditor.Flairs
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
///
|
|
9
|
+
/// </summary>
|
|
10
|
+
public interface IFlairEvent
|
|
11
|
+
{
|
|
12
|
+
/// <summary>
|
|
13
|
+
///
|
|
14
|
+
/// </summary>
|
|
15
|
+
/// <returns></returns>
|
|
16
|
+
IFlair GetFlair();
|
|
17
|
+
|
|
18
|
+
/// <summary>
|
|
19
|
+
///
|
|
20
|
+
/// </summary>
|
|
21
|
+
/// <returns></returns>
|
|
22
|
+
List<IFlairSetting> GetSettings();
|
|
23
|
+
|
|
24
|
+
/// <summary>
|
|
25
|
+
///
|
|
26
|
+
/// </summary>
|
|
27
|
+
/// <param name="spawnedFlair"></param>
|
|
28
|
+
void ApplySettings(GameObject spawnedFlair);
|
|
29
|
+
}
|
|
30
30
|
}
|
package/IFlairEvent.cs.meta
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 7d823ae60b777a24a8df5f74511b4e55
|
package/IFlairSetting.cs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.Flairs
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public interface IFlairSetting
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
/// <param name="spawnedFlair"></param>
|
|
15
|
-
void ApplySetting(GameObject spawnedFlair);
|
|
16
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.Flairs
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public interface IFlairSetting
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
/// <param name="spawnedFlair"></param>
|
|
15
|
+
void ApplySetting(GameObject spawnedFlair);
|
|
16
|
+
}
|
|
17
17
|
}
|
package/IFlairSetting.cs.meta
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: c9cd2daf998e51b40a28bee2986bc07d
|
package/IFlairSpawnStep.cs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.Flairs
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public interface IFlairSpawnStep
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
/// <param name="eventInstance"></param>
|
|
15
|
-
/// <returns></returns>
|
|
16
|
-
GameObject SpawnFlair(IFlairEvent eventInstance);
|
|
17
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.Flairs
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public interface IFlairSpawnStep
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
/// <param name="eventInstance"></param>
|
|
15
|
+
/// <returns></returns>
|
|
16
|
+
GameObject SpawnFlair(IFlairEvent eventInstance);
|
|
17
|
+
}
|
|
18
18
|
}
|
package/IFlairSpawnStep.cs.meta
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 29b8c24910f329043ba649492921625b
|
package/IFlairStep.cs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.Flairs
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public interface IFlairStep
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
/// <param name="eventInstance"></param>
|
|
15
|
-
/// <param name="spawnedFlair"></param>
|
|
16
|
-
void ApplyStep(IFlairEvent eventInstance, GameObject spawnedFlair);
|
|
17
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.Flairs
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public interface IFlairStep
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
/// <param name="eventInstance"></param>
|
|
15
|
+
/// <param name="spawnedFlair"></param>
|
|
16
|
+
void ApplyStep(IFlairEvent eventInstance, GameObject spawnedFlair);
|
|
17
|
+
}
|
|
18
18
|
}
|
package/IFlairStep.cs.meta
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 9f4f34407b195c04faabd3166e9e904c
|
package/LayerFlair.cs
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using DREditor.Utility;
|
|
3
|
-
using System;
|
|
4
|
-
using UnityEngine;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.Flairs
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[Serializable]
|
|
12
|
-
public class LayerFlair : IFlairStep
|
|
13
|
-
{
|
|
14
|
-
/// <summary>
|
|
15
|
-
///
|
|
16
|
-
/// </summary>
|
|
17
|
-
[Header("")]
|
|
18
|
-
[Divider]
|
|
19
|
-
[Tooltip("")]
|
|
20
|
-
[SerializeField] protected LayerMask focusLayer;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/// <inheritdoc/>
|
|
24
|
-
public virtual void ApplyStep(IFlairEvent eventInstance, GameObject spawnedFlair)
|
|
25
|
-
{
|
|
26
|
-
int layerIndex = focusLayer.GetFirst();
|
|
27
|
-
|
|
28
|
-
if (layerIndex == -1)
|
|
29
|
-
return;
|
|
30
|
-
|
|
31
|
-
spawnedFlair.layer = layerIndex;
|
|
32
|
-
|
|
33
|
-
var children = spawnedFlair.GetComponentsInChildren<Transform>();
|
|
34
|
-
|
|
35
|
-
foreach (Transform child in children)
|
|
36
|
-
child.gameObject.layer = layerIndex;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using DREditor.Utility;
|
|
3
|
+
using System;
|
|
4
|
+
using UnityEngine;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.Flairs
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[Serializable]
|
|
12
|
+
public class LayerFlair : IFlairStep
|
|
13
|
+
{
|
|
14
|
+
/// <summary>
|
|
15
|
+
///
|
|
16
|
+
/// </summary>
|
|
17
|
+
[Header("")]
|
|
18
|
+
[Divider]
|
|
19
|
+
[Tooltip("")]
|
|
20
|
+
[SerializeField] protected LayerMask focusLayer;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/// <inheritdoc/>
|
|
24
|
+
public virtual void ApplyStep(IFlairEvent eventInstance, GameObject spawnedFlair)
|
|
25
|
+
{
|
|
26
|
+
int layerIndex = focusLayer.GetFirst();
|
|
27
|
+
|
|
28
|
+
if (layerIndex == -1)
|
|
29
|
+
return;
|
|
30
|
+
|
|
31
|
+
spawnedFlair.layer = layerIndex;
|
|
32
|
+
|
|
33
|
+
var children = spawnedFlair.GetComponentsInChildren<Transform>();
|
|
34
|
+
|
|
35
|
+
foreach (Transform child in children)
|
|
36
|
+
child.gameObject.layer = layerIndex;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
39
|
}
|
package/LayerFlair.cs.meta
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 80a3f2b352dcb48459aacb23601dffa0
|
package/ProtagFlairStrategy.cs
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using DREditor.Dialogues;
|
|
3
|
-
using DREditor.EventObjects;
|
|
4
|
-
using DREditor.Services;
|
|
5
|
-
using System.Collections;
|
|
6
|
-
using UnityEngine;
|
|
7
|
-
|
|
8
|
-
namespace DREditor.Flairs
|
|
9
|
-
{
|
|
10
|
-
/// <summary>
|
|
11
|
-
///
|
|
12
|
-
/// </summary>
|
|
13
|
-
[ClassHeader(nameof(FlairStrategy) + ", " + nameof(FlairStrategyBase) + ", " + nameof(FlairSpawnerBase) +
|
|
14
|
-
"\n\n")]
|
|
15
|
-
public class ProtagFlairStrategy : FlairStrategy
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
[Tooltip("")]
|
|
21
|
-
[SerializeField] protected StringWithEvent protagFirstName = null;
|
|
22
|
-
|
|
23
|
-
/// <summary>
|
|
24
|
-
///
|
|
25
|
-
/// </summary>
|
|
26
|
-
[Tooltip("")]
|
|
27
|
-
[SerializeField] protected BoolWithEvent protagUIVisible = null;
|
|
28
|
-
|
|
29
|
-
/// <summary>
|
|
30
|
-
///
|
|
31
|
-
/// </summary>
|
|
32
|
-
[Tooltip("")]
|
|
33
|
-
[SerializeField] protected float protagWindowShowDuration = 0.5f;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/// <inheritdoc/>
|
|
37
|
-
protected override bool ShouldBeUsed() => base.ShouldBeUsed() && ProtagIsSpeaking();
|
|
38
|
-
|
|
39
|
-
/// <summary>
|
|
40
|
-
///
|
|
41
|
-
/// </summary>
|
|
42
|
-
/// <returns></returns>
|
|
43
|
-
/// <remarks></remarks>
|
|
44
|
-
protected virtual bool ProtagIsSpeaking() =>
|
|
45
|
-
ServiceLocator.GetService<IDialogueManager>().GetReader().GetCurrentLine().Speaker.FirstName == protagFirstName.Value;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/// <inheritdoc/>
|
|
49
|
-
protected override void OnSpawnInvoked()
|
|
50
|
-
{
|
|
51
|
-
if (protagUIVisible.Value)
|
|
52
|
-
base.OnSpawnInvoked();
|
|
53
|
-
else
|
|
54
|
-
StartCoroutine(BufferSpawning());
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/// <summary>
|
|
58
|
-
///
|
|
59
|
-
/// </summary>
|
|
60
|
-
protected virtual IEnumerator BufferSpawning()
|
|
61
|
-
{
|
|
62
|
-
yield return new WaitUntil(() => protagUIVisible.Value);
|
|
63
|
-
|
|
64
|
-
yield return new WaitForSeconds(protagWindowShowDuration);
|
|
65
|
-
|
|
66
|
-
base.OnSpawnInvoked();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using DREditor.Dialogues;
|
|
3
|
+
using DREditor.EventObjects;
|
|
4
|
+
using DREditor.Services;
|
|
5
|
+
using System.Collections;
|
|
6
|
+
using UnityEngine;
|
|
7
|
+
|
|
8
|
+
namespace DREditor.Flairs
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
///
|
|
12
|
+
/// </summary>
|
|
13
|
+
[ClassHeader(nameof(FlairStrategy) + ", " + nameof(FlairStrategyBase) + ", " + nameof(FlairSpawnerBase) +
|
|
14
|
+
"\n\n")]
|
|
15
|
+
public class ProtagFlairStrategy : FlairStrategy
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
[Tooltip("")]
|
|
21
|
+
[SerializeField] protected StringWithEvent protagFirstName = null;
|
|
22
|
+
|
|
23
|
+
/// <summary>
|
|
24
|
+
///
|
|
25
|
+
/// </summary>
|
|
26
|
+
[Tooltip("")]
|
|
27
|
+
[SerializeField] protected BoolWithEvent protagUIVisible = null;
|
|
28
|
+
|
|
29
|
+
/// <summary>
|
|
30
|
+
///
|
|
31
|
+
/// </summary>
|
|
32
|
+
[Tooltip("")]
|
|
33
|
+
[SerializeField] protected float protagWindowShowDuration = 0.5f;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/// <inheritdoc/>
|
|
37
|
+
protected override bool ShouldBeUsed() => base.ShouldBeUsed() && ProtagIsSpeaking();
|
|
38
|
+
|
|
39
|
+
/// <summary>
|
|
40
|
+
///
|
|
41
|
+
/// </summary>
|
|
42
|
+
/// <returns></returns>
|
|
43
|
+
/// <remarks></remarks>
|
|
44
|
+
protected virtual bool ProtagIsSpeaking() =>
|
|
45
|
+
ServiceLocator.GetService<IDialogueManager>().GetReader().GetCurrentLine().Speaker.FirstName == protagFirstName.Value;
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/// <inheritdoc/>
|
|
49
|
+
protected override void OnSpawnInvoked()
|
|
50
|
+
{
|
|
51
|
+
if (protagUIVisible.Value)
|
|
52
|
+
base.OnSpawnInvoked();
|
|
53
|
+
else
|
|
54
|
+
StartCoroutine(BufferSpawning());
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/// <summary>
|
|
58
|
+
///
|
|
59
|
+
/// </summary>
|
|
60
|
+
protected virtual IEnumerator BufferSpawning()
|
|
61
|
+
{
|
|
62
|
+
yield return new WaitUntil(() => protagUIVisible.Value);
|
|
63
|
+
|
|
64
|
+
yield return new WaitForSeconds(protagWindowShowDuration);
|
|
65
|
+
|
|
66
|
+
base.OnSpawnInvoked();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
69
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 99589b7be7c17fe4baba0dfd407aa152
|