Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
2689ad1
Add fixes for icon duplication
AlchlcDvl Jan 30, 2025
01a0e1e
fix:UNT 0008 for ComponentExtensions
yukieiji Feb 4, 2025
700609c
fix: UNT00008 for FishController
yukieiji Feb 4, 2025
3cdad72
fix:UNT0008 for CleanGlassMinigame
yukieiji Feb 4, 2025
d5b9140
fix:UNT0008 for ClearUrchinsMinigame
yukieiji Feb 4, 2025
6d4b189
fix:UNT0008 for DispenseWaterMinigame
yukieiji Feb 4, 2025
1e52420
fix: UNT0008 for FeedFishMinigame
yukieiji Feb 4, 2025
939fd12
fix: UNT0008 for IdentifySpecimenMinigame
yukieiji Feb 4, 2025
4ad9918
fix: UNT0008 for LocateVolcanicActivityMinigame
yukieiji Feb 4, 2025
06f7c28
fix: UNT0008 for OxygenateCoralMinigame
yukieiji Feb 4, 2025
ab18b28
fix: UNT0008 for ReconnectPipingMinigame
yukieiji Feb 4, 2025
d4e7328
fix: UNT0008 for ResetBreakersMinigame
yukieiji Feb 4, 2025
1ec5f8e
fix:UNT0008 for ReshelvePart1
yukieiji Feb 4, 2025
10ed73c
fix:UNT0008 for ReshelvePart2
yukieiji Feb 4, 2025
d346008
fix:UNT0008 for SortScubaMinigame
yukieiji Feb 4, 2025
4a65cfc
fix: UNT0008 for WhaleSharkMinigame
yukieiji Feb 4, 2025
8b54488
fix:UNT0008 for StartSubmersibleMinigame
yukieiji Feb 4, 2025
9782f8d
fix: UNT0008 for SteadyHeartbeatMinigame
yukieiji Feb 4, 2025
b47dadf
fix: UNT0008 for TrackMantaMinigame
yukieiji Feb 4, 2025
7c31e3e
fix:UNT0008 for OxygenSabotageTask
yukieiji Feb 4, 2025
c1a0c92
Merge pull request #186 from AlchlcDvl/main
Alexejhero Mar 10, 2025
0439c5e
feat: analyzer
yukieiji Mar 29, 2025
8896b4c
Merge pull request #187 from yukieiji/fix-unity_null_pattern
Alexejhero Mar 30, 2025
ca65904
Basic update for 2025.3.25
simonkellly Apr 20, 2025
de70797
Fix april fools toggle
simonkellly Apr 20, 2025
30d30ef
Fix create game UIs etc.
simonkellly Apr 29, 2025
e767932
Update Submerged Version
simonkellly Apr 29, 2025
1000a6e
Fix some issues with the shadow renderer performance
simonkellly Apr 29, 2025
6368792
Merge branch 'dev' into 2025.4.29
Alexejhero May 1, 2025
c04715b
Basic update for 2025.5.20
XtraCube May 21, 2025
da66537
Update Minigame BaseClose
XtraCube May 21, 2025
5fd71d8
Update BaseGameCode methods
XtraCube May 21, 2025
66af7eb
Implement new ISystemType.MarkClean method
XtraCube May 21, 2025
5fcb110
Update logger patch
XtraCube May 21, 2025
df36632
Remove explicit uses of destroyablesingleton
XtraCube May 21, 2025
c9880f6
Merge remote-tracking branch 'origin/2025.4.29' into 2025.5.20
XtraCube May 21, 2025
d78fe29
Prevent dictionary errors in UseButton when loading certain mods.
XtraCube May 21, 2025
2874b3e
Merge pull request #200 from SubmergedAmongUs/2025.5.20
Alexejhero Jul 7, 2025
daccd5a
bump AU version
XtraCube Sep 30, 2025
742ab13
Fix compile errors
XtraCube Sep 30, 2025
1a56937
check and update BaseGameCode
XtraCube Sep 30, 2025
4b42d12
Fix ArrowBehaviour.UpdatePosition inlining
XtraCube Sep 30, 2025
4b0d317
note possible inlining
XtraCube Sep 30, 2025
87b7a8a
Merge pull request #206 from SubmergedAmongUs/2025.9.9
Alexejhero Oct 1, 2025
1d70c31
Update NuGet packages
Alexejhero Oct 19, 2025
dbcb7d9
Update CONTRIBUTING.md
Alexejhero Oct 19, 2025
d691934
Update Unity project to 2022.3.62
Alexejhero Oct 19, 2025
f854070
Add @XtraCube to credits
Alexejhero Oct 19, 2025
0b20d9f
Fix reset breakers and door sabotage
Alexejhero Oct 19, 2025
8371564
Update README.md
Alexejhero Oct 19, 2025
8263702
Update AirshipUploadGame.cs
Alexejhero Oct 19, 2025
425336c
Switch to reactor methodrpc
Alexejhero Oct 19, 2025
b1e00d6
Try to fix oxygen death (wip)
Alexejhero Oct 19, 2025
ebd74d1
Try the other way
Alexejhero Oct 19, 2025
8b753f4
Revert "Try the other way"
Alexejhero Oct 19, 2025
95132e1
Fix oxygen animation
Alexejhero Oct 19, 2025
8fb650d
Update version
Alexejhero Oct 20, 2025
07199cd
Update issue templates
Alexejhero Oct 20, 2025
b7e46ba
Fix #210
Alexejhero Oct 22, 2025
8b11cb9
Fix IDE warnings
Alexejhero Oct 22, 2025
50d0a35
Bump version
Alexejhero Oct 22, 2025
1da9c68
Update README.md
Alexejhero Oct 22, 2025
4f5a775
Add CI
Alexejhero Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1609,3 +1609,7 @@ resharper_xaml_xaml_unknown_device_family_type_highlighting_highlighting = warni
resharper_xaml_xaml_xamarin_forms_data_type_and_binding_context_type_mismatched_highlighting_highlighting = warning
resharper_xaml_x_key_attribute_disallowed_highlighting = error
resharper_xunit_xunit_test_with_console_output_highlighting = warning

[*.{yml,yaml}]
indent_size = 2
tab_width = 2
4 changes: 1 addition & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
If you want to contribute to Submerged, you can take a look at the list of open issues and pick something from there.
If you want to contribute to Submerged, you can take a look at the list of open issues and pick something from there.
If you want to add an improvement/enhancement/something new, please open an issue first to talk about it.

Feel free to pull request bug fixes or other small changes like mod compatibility.

We do not accept pull request for updating game versions.
27 changes: 13 additions & 14 deletions .github/FOR MOD DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@ Submerged tries to patch as little as possible in order to allow other mods to b

- SpawnablePrefabs
- `11` - SubmarineStatus
- RPCCalls
- Systems
- `130` - SubmarineOxygenSystem
- `136` - SubmarineElevatorSystem (HallwayLeft)
- `137` - SubmarineElevatorSystem (HallwayRight)
- `138` - SubmarineElevatorSystem (LobbyLeft)
- `139` - SubmarineElevatorSystem (LobbyRight)
- `140` - SubmarineElevatorSystem (Service)
- `141` - SubmarinePlayerFloorSystem
- `142` - SubmarineSecuritySabotageSystem
- `143` - SubmarineSpawnInSystem
- `144` - SubmarineBoxCatSystem
- Reactor MethodRPCs
- `210` - SetCustomData
- `211` - RequestChangeFloor
- `212` - AcknowledgeChangeFloor
- `213` - EngineVent
- `214` - OxygenDeath
- Systems
- `130` - SubmarineOxygenSystem
- `136` - SubmarineElevatorSystem (HallwayLeft)
- `137` - SubmarineElevatorSystem (HallwayRight)
- `138` - SubmarineElevatorSystem (LobbyLeft)
- `139` - SubmarineElevatorSystem (LobbyRight)
- `140` - SubmarineElevatorSystem (Service)
- `141` - SubmarinePlayerFloorSystem
- `142` - SubmarineSecuritySabotageSystem
- `143` - SubmarineSpawnInSystem
- `144` - SubmarineBoxCatSystem

# Important Classes

Expand All @@ -46,7 +45,7 @@ Location: `Submerged.Elevators.Objects.ElevatorMover`

## GenericShadowBehaviour

This compnent can be added to objects in order to make them cast a shadow from upper deck to lower deck. You might need to create custom shadow renderers to describe how the shadow needs to be drawn. These classes extend `RelativeShadowRenderer`
This component can be added to objects in order to make them cast a shadow from upper deck to lower deck. You might need to create custom shadow renderers to describe how the shadow needs to be drawn. These classes extend `RelativeShadowRenderer`

Location: `Submerged.Floors.Objects.GenericShadowBehaviour`

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
type: Bug
assignees: ''

---
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
type: Feature
assignees: ''

---
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/submit_translation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Submit translation
about: Help us translate Submerged to other languages
title: ''
labels: translation
type: Feature
assignees: ''

---
Expand Down
91 changes: 91 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Build

on:
push:
branches:
- "*"
workflow_dispatch:

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9

- name: Restore NuGet packages
run: dotnet restore

- name: Build Debug
run: dotnet build -c Debug --no-restore

- name: Build Release
run: dotnet build -c Release --no-restore

- name: Upload mod dll
uses: actions/upload-artifact@v4
with:
name: Submerged
path: Submerged/bin/Submerged/Release/net6.0/Submerged.dll

- name: Cache BepInEx and Reactor download
id: cache
uses: actions/cache@v4
with:
path: BepInEx
key: BepInEx-${{ hashFiles('**/packages.lock.json') }}

- name: Download BepInEx
if: steps.cache.outputs.cache-hit != 'true'
run: |
BEPINEX_VERSION=$(grep '<PackageReference Include="BepInEx.Unity.IL2CPP"' Submerged/Submerged.csproj | sed 's/.*Version="6.0.0-be.\([^"]*\)".*/\1/')
curl -o build_page.html https://builds.bepinex.dev/projects/bepinex_be
ARCHIVE_NAME_X64=$(grep -o "BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.${BEPINEX_VERSION}+[^\"']*.zip" build_page.html)
ARCHIVE_NAME_X86=$(grep -o "BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.${BEPINEX_VERSION}+[^\"']*.zip" build_page.html)
curl -o BepInEx_x64.zip https://builds.bepinex.dev/projects/bepinex_be/${BEPINEX_VERSION}/${ARCHIVE_NAME_X64}
curl -o BepInEx_x86.zip https://builds.bepinex.dev/projects/bepinex_be/${BEPINEX_VERSION}/${ARCHIVE_NAME_X86}
mkdir BepInEx
unzip BepInEx_x64.zip -d BepInEx/x64
unzip BepInEx_x86.zip -d BepInEx/x86
chmod -R u+rwx BepInEx

- name: Download and copy Reactor
if: steps.cache.outputs.cache-hit != 'true'
run: |
REACTOR_VERSION=$(grep '<PackageReference Include="Reactor"' Submerged/Submerged.csproj | sed 's/.*Version="\([^"]*\)-ci\..*/\1/')
curl -L -o Reactor.dll https://github.com/NuclearPowered/Reactor/releases/download/${REACTOR_VERSION}/Reactor.dll
cp Reactor.dll BepInEx/x64/BepInEx/plugins/Reactor.dll
cp Reactor.dll BepInEx/x86/BepInEx/plugins/Reactor.dll

- name: Create install archives
run: |
cp Submerged/bin/Submerged/Release/net6.0/Submerged.dll BepInEx/x64/BepInEx/plugins/Submerged.dll
cp Submerged/bin/Submerged/Release/net6.0/Submerged.dll BepInEx/x86/BepInEx/plugins/Submerged.dll

- name: Upload x64 mod archive
uses: actions/upload-artifact@v4
with:
name: Submerged+dependencies (MSStore)
path: BepInEx/x64

- name: Upload x86 mod archive
uses: actions/upload-artifact@v4
with:
name: Submerged+dependencies (Steam, Epic, Itch)
path: BepInEx/x86

- name: Cleanup folders for caching
run: |
rm BepInEx/x64/BepInEx/plugins/Submerged.dll
rm BepInEx/x86/BepInEx/plugins/Submerged.dll
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,5 @@ MigrationBackup/
Submerged/Resources/AssetBundles/submerged.manifest
Submerged/Resources/AssetBundles/AssetBundles
Submerged/Resources/AssetBundles/AssetBundles.manifest

.vscode
92 changes: 47 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ The table below lists the most recent Submerged release for each Among Us versio

| Among Us Version | Submerged Version | Links |
|:---------------------------------------------------------------------------------------------:|:-----------------:|:-----------------------------------------------------------------------------------:|
| `v2024.11.26`<br>`v2024.10.29`<br>`v2024.9.4`<br>`v2024.8.13` | `v2025.1.30` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2025.1.30/) |
| `v17.0.1`<br>`v17.0.0` | `v2025.10.22` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2025.10.22/) |
| `v16.1.0`<br>`v16.0.5`<br>`v16.0.3`<br>`v16.0.2`<br>`v16.0.0` | Unavailable | - |
| `v2024.11.26`<br>`v2024.10.29`<br>`v2024.9.4`<br>`v2024.8.13` | `v2025.1.30` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2025.1.30/) |
| `v2024.6.18` | `v2024.8.1` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2024.8.1/) |
| `v2024.6.4`<br>`v2024.3.5` | `v2024.3.25` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2024.3.25/) |
| `v2023.11.28` | `v2023.11.29` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2023.11.29/) |
Expand All @@ -66,10 +68,10 @@ The table below lists the most recent Submerged release for each Among Us versio

Submerged depends on the following mods and modding tools in order to function properly:

| Mod | Version |
|-----------------------------------------------------------|--------------------------|
| [BepInEx](https://builds.bepinex.dev/projects/bepinex_be) | `v6.0.0-be.692` or later |
| [Reactor](https://github.com/nuclearpowered/reactor) | `v2.3.0` or later |
| Mod | Version |
|-----------------------------------------------------------|-------------------|
| [BepInEx](https://builds.bepinex.dev/projects/bepinex_be) | `v6.0.0-be.735` |
| [Reactor](https://github.com/nuclearpowered/reactor) | `v2.5.0` or later |

> [!Note]
> If you are using the Microsoft Store version of Among Us, you will need to download the `Unity (IL2CPP) for Windows (x64) games` version of BepInEx. Otherwise, you will need to download the `Unity (IL2CPP) for Windows (x86) games` version.
Expand All @@ -87,7 +89,7 @@ This mod has been tested and works with the Steam, Epic, itch.io and Microsoft S
1. Download the correct ZIP [release](#releases) based on your Among Us version.
2. Navigate to your Among Us installation directory.
3. Extract the downloaded files there. Ensure that the `BepInEx` folder is located in the same folder as the `Among Us.exe` file (Check screenshot below).
![Folder Structure](./.github/Images/Folder-Structure.png)
![Folder Structure](./.github/Images/Folder-Structure.png)

4. Run the game (Please note that the first launch might take some time).

Expand All @@ -100,16 +102,16 @@ Submerged is available in the languages listed below. If you would like to help
| Language | ❔ | Status |
|-------------------------|:--:|:---------------------------------:|
| English | ✅ | - |
| Deutsch | ✅ | Fully Translated |
| Français | ✅ | Fully Translated |
| Italiano | ✅ | Fully Translated |
| Nederlands | ✅ | Fully Translated |
| Português (Brasil) | ✅ | Fully Translated |
| Русский | ✅ | Fully Translated |
| 日本語 | ✅ | Fully Translated |
| 简体中文 | ✅ | Fully Translated |
| 繁體中文 | ✅ | Fully Translated |
| Deutsch | 🟡 | Partially Translated |
| Español | 🟡 | Partially Translated |
| Français | 🟡 | Partially Translated |
| Italiano | 🟡 | Partially Translated |
| Nederlands | 🟡 | Partially Translated |
| Português (Brasil) | 🟡 | Partially Translated |
| Русский | 🟡 | Partially Translated |
| 日本語 | 🟡 | Partially Translated |
| 简体中文 | 🟡 | Partially Translated |
| 繁體中文 | 🟡 | Partially Translated |
| Bisaya | ❌ | Not Translated |
| Español (Latinoamérica) | ❌ | Not Translated<br>(Using Español) |
| Gaeilge | ❌ | Not Translated |
Expand Down Expand Up @@ -140,41 +142,41 @@ _This mod is not affiliated with Among Us or Innersloth LLC, and the content con

For business inquiries, please contact us at `[email protected]`.


# Credits

- Project Lead
- [5up](https://twitch.tv/5up/)
- [5up](https://twitch.tv/5up/)
- Developers
- [Alexejhero](https://github.com/Alexejhero/)
- [arctic_zeph](https://twitter.com/arctic_zeph/)
- [probablyadnf](https://github.com/simonkellly/)
- [Alexejhero](https://github.com/Alexejhero/)
- [arctic_zeph](https://twitter.com/arctic_zeph/)
- [probablyadnf](https://github.com/simonkellly/)
- Map Design
- [Axyn](https://twitter.com/itsAxyn/)
- [Blaustoise](https://twitter.com/blaustoise/)
- [Axyn](https://twitter.com/itsAxyn/)
- [Blaustoise](https://twitter.com/blaustoise/)
- Artists
- [colerobin_](https://twitter.com/colerobin_)
- [flipsonthemoon](https://twitter.com/flipsonthemoon/)
- [mushrium](https://twitter.com/mushrium/)
- [sabimrtn](https://twitter.com/sabimrtn/)
- [theinkpages](https://www.instagram.com/theinkpages/)
- [xiiyta](https://twitter.com/xiiyta/)
- Technical Support
- [cybershard](https://github.com/cybershard/)
- [js6pak](https://github.com/js6pak)
- [Sanae6](https://twitter.com/Sanae6k/)
- [colerobin_](https://twitter.com/colerobin_)
- [flipsonthemoon](https://twitter.com/flipsonthemoon/)
- [mushrium](https://twitter.com/mushrium/)
- [sabimrtn](https://twitter.com/sabimrtn/)
- [theinkpages](https://www.instagram.com/theinkpages/)
- [xiiyta](https://twitter.com/xiiyta/)
- Contributors
- [cybershard](https://github.com/cybershard/)
- [js6pak](https://github.com/js6pak)
- [Sanae6](https://twitter.com/Sanae6k/)
- [XtraCube](https://github.com/xtracube/)
- Additional Art
- [acronmd](https://twitter.com/acronmd/)
- [pb](https://twitter.com/QueenTamandua/)
- [acronmd](https://twitter.com/acronmd/)
- [QueenPb](https://twitter.com/QueenTamandua/)
- Translators
- Dekokiyo - 日本語
- ItsNiceCraft - Deutsch
- MissJukebox - Español
- Monid73 - Русский
- PENGUN - Italiano
- RevoLou - Português do Brasil
- RobinRMC - Nederlands
- SPRLC - Français
- ねろちゃん - 日本語
- 阿龍DragonTw - 繁體中文
- 黑客Hecker - 简体中文
- Dekokiyo - 日本語
- ItsNiceCraft - Deutsch
- MissJukebox - Español
- Monid73 - Русский
- PENGUN - Italiano
- RevoLou - Português do Brasil
- RobinRMC - Nederlands
- SPRLC - Français
- ねろちゃん - 日本語
- 阿龍DragonTw - 繁體中文
- 黑客Hecker - 简体中文
3 changes: 2 additions & 1 deletion Submerged/BaseGame/BaseGameCodeAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ namespace Submerged.BaseGame;
public enum LastChecked
{
// ReSharper disable InconsistentNaming
v2024_8_13,
v17_0_0,
v17_0_1
// ReSharper restore InconsistentNaming
}

Expand Down
57 changes: 24 additions & 33 deletions Submerged/BaseGame/Extensions/Minigame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,34 @@ namespace Submerged.BaseGame.Extensions;

public static class MinigameExtensions
{
[BaseGameCode(LastChecked.v2024_8_13, "Entire method is copied from base game because we can't call it from the base pointer since that causes an infinite loop.")]
[BaseGameCode(LastChecked.v17_0_0, "Entire method is copied from base game because we can't call it from the base pointer since that causes an infinite loop.")]
public static void BaseClose(this Minigame self)
{
bool isComplete;
if (self.amClosing == Minigame.CloseState.Closing)
if (self.amClosing != Minigame.CloseState.Closing)
{
UnityEngine.Object.Destroy(self.gameObject);
if (self.CloseSound && Constants.ShouldPlaySfx())
{
SoundManager.Instance.PlaySound(self.CloseSound, false);
}
if (PlayerControl.LocalPlayer.Data.Role.TeamType == RoleTeamTypes.Crewmate)
{
GameManager.Instance.LogicMinigame.OnMinigameClose();
}
if (PlayerControl.LocalPlayer)
{
PlayerControl.HideCursorTemporarily();
}
self.amClosing = Minigame.CloseState.Closing;
self.logger.Info("Closing minigame " + self.GetType().Name);
IAnalyticsReporter analytics = DebugAnalytics.Instance.Analytics;
NetworkedPlayerInfo data = PlayerControl.LocalPlayer.Data;
TaskTypes taskType = self.TaskType;
float num = Time.realtimeSinceStartup - self.timeOpened;
PlayerTask myTask = self.MyTask;
analytics.MinigameClosed(data, taskType, num, myTask != null && myTask.IsComplete);
self.StartCoroutine(self.CoDestroySelf());
return;
}
if (self.CloseSound && Constants.ShouldPlaySfx())
{
SoundManager.Instance.PlaySound(self.CloseSound, false, 1f, null);
}
if (PlayerControl.LocalPlayer.Data.Role.TeamType == RoleTeamTypes.Crewmate)
{
GameManager.Instance.LogicMinigame.OnMinigameClose();
}
if (PlayerControl.LocalPlayer)
{
PlayerControl.HideCursorTemporarily();
}
self.amClosing = Minigame.CloseState.Closing;
self.logger.Info(string.Concat("Closing minigame ", self.GetType().Name));
IAnalyticsReporter analytics = DestroyableSingleton<DebugAnalytics>.Instance.Analytics;
NetworkedPlayerInfo data = PlayerControl.LocalPlayer.Data;
TaskTypes taskType = self.TaskType;
float realtimeSinceStartup = Time.realtimeSinceStartup - self.timeOpened;
PlayerTask myTask = self.MyTask;
if (myTask != null)
{
isComplete = myTask.IsComplete;
}
else
{
isComplete = false;
}
analytics.MinigameClosed(data, taskType, realtimeSinceStartup, isComplete);
self.StartCoroutine(self.CoDestroySelf());
UnityObject.Destroy(self.gameObject);
}
}
Loading