Skip to content

Commit

Permalink
Merge pull request #25 from VirtueSky/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VirtueSky authored Oct 2, 2024
2 parents 70cb1f8 + 038a3f7 commit 8f009cb
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
### 1: Download the repo and drop it into folder `Assets`
### 2: Add the line below to `Packages/manifest.json`

for version `3.0.6`
for version `3.0.7`
```csharp
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#3.0.6",
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#3.0.7",
```

## Includes modules
Expand Down
17 changes: 17 additions & 0 deletions VirtueSky/Audio/Runtime/AudioHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace VirtueSky.Audio
{
public static class AudioHelper
{
public static SoundCache PlaySfx(this SoundData soundData, PlaySfxEvent playSfxEvent) => playSfxEvent.Raise(soundData);
public static void PauseSfx(this SoundCache soundCache, PauseSfxEvent pauseSfxEvent) => pauseSfxEvent.Raise(soundCache);
public static void StopSfx(this SoundCache soundCache, StopSfxEvent stopSfxEvent) => stopSfxEvent.Raise(soundCache);
public static void ResumeSfx(this SoundCache soundCache, ResumeSfxEvent resumeSfxEvent) => resumeSfxEvent.Raise(soundCache);
public static void FinishSfx(this SoundCache soundCache, FinishSfxEvent finishSfxEvent) => finishSfxEvent.Raise(soundCache);
public static void StopAllSfx(this StopAllSfxEvent stopAllSfxEvent) => stopAllSfxEvent.Raise();

public static void PlayMusic(this SoundData soundData, PlayMusicEvent playMusicEvent) => playMusicEvent.Raise(soundData);
public static void StopMusic(this StopMusicEvent stopMusicEvent) => stopMusicEvent.Raise();
public static void PauseMusic(this PauseMusicEvent pauseMusicEvent) => pauseMusicEvent.Raise();
public static void ResumeMusic(this ResumeMusicEvent resumeMusicEvent) => resumeMusicEvent.Raise();
}
}
3 changes: 3 additions & 0 deletions VirtueSky/Audio/Runtime/AudioHelper.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions VirtueSky/ControlPanel/CPScriptingDefineSymbolsDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public static void OnDrawScriptingDefineSymbols()
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.VIRTUESKY_NOTIFICATION);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.VIRTUESKY_APPSFLYER);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.PRIME_TWEEN_DOTWEEN_ADAPTER);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.PRIME_TWEEN_SAFETY_CHECKS);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.VIRTUESKY_APPLE_AUTH);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.VIRTUESKY_GPGS);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.VIRTUESKY_SKELETON);
Expand Down
2 changes: 1 addition & 1 deletion VirtueSky/ControlPanel/ConstantPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class ConstantPackage
{
public const string VersionSunflower = "3.0.6";
public const string VersionSunflower = "3.0.7";
public const string PackageNameInAppPurchase = "com.unity.purchasing";
public const string MaxVersionInAppPurchase = "4.12.2";
public const string PackageNameNewtonsoftJson = "com.unity.nuget.newtonsoft-json";
Expand Down
1 change: 1 addition & 0 deletions VirtueSky/Utils/Editor/ConstantDefineSymbols.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ConstantDefineSymbols
public const string VIRTUESKY_NOTIFICATION = "VIRTUESKY_NOTIFICATION";
public const string VIRTUESKY_APPSFLYER = "VIRTUESKY_APPSFLYER";
public const string PRIME_TWEEN_DOTWEEN_ADAPTER = "PRIME_TWEEN_DOTWEEN_ADAPTER";
public const string PRIME_TWEEN_SAFETY_CHECKS = "PRIME_TWEEN_SAFETY_CHECKS";
public const string VIRTUESKY_GPGS = "VIRTUESKY_GPGS";
public const string VIRTUESKY_APPLE_AUTH = "VIRTUESKY_APPLE_AUTH";
public const string VIRTUESKY_SKELETON = "VIRTUESKY_SKELETON";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.virtuesky.sunflower",
"displayName": "Sunflower",
"description": "Core ScriptableObject Architecture for building Unity games",
"version": "3.0.6",
"version": "3.0.7",
"unity": "2022.3",
"category": "virtuesky",
"license": "MIT",
Expand Down

0 comments on commit 8f009cb

Please sign in to comment.