Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BeatSaber-MultiplayerColors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pg98
BeatSaber-MultiplayerColors
Commits
a80b51d1
Commit
a80b51d1
authored
4 years ago
by
pg98
Browse files
Options
Downloads
Patches
Plain Diff
fix NullReferenceExceptions while initializing MultiplayerColorManager
parent
45425900
Branches
Branches containing commit
Tags
1.0.2
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
MultiplayerColorManager.cs
+12
-0
12 additions, 0 deletions
MultiplayerColorManager.cs
MultiplayerColors.csproj
+4
-0
4 additions, 0 deletions
MultiplayerColors.csproj
Properties/AssemblyInfo.cs
+2
-2
2 additions, 2 deletions
Properties/AssemblyInfo.cs
manifest.json
+1
-1
1 addition, 1 deletion
manifest.json
with
19 additions
and
3 deletions
MultiplayerColorManager.cs
+
12
−
0
View file @
a80b51d1
...
...
@@ -8,6 +8,18 @@ namespace MultiplayerColors {
Color
.
red
,
Color
.
green
,
false
,
Color
.
red
,
Color
.
green
,
Color
.
red
);
public
MultiplayerColorManager
()
{
var
dummyColor
=
ScriptableObject
.
CreateInstance
<
SimpleColorSO
>();
_saberAColor
=
dummyColor
;
_saberBColor
=
dummyColor
;
_environmentColor0
=
dummyColor
;
_environmentColor1
=
dummyColor
;
_environmentColor0Boost
=
dummyColor
;
_environmentColor1Boost
=
dummyColor
;
_obstaclesColor
=
dummyColor
;
}
public
override
void
Awake
()
{
if
(
_colorScheme
==
null
)
_colorScheme
=
DefaultColorScheme
;
}
...
...
This diff is collapsed.
Click to expand it.
MultiplayerColors.csproj
+
4
−
0
View file @
a80b51d1
...
...
@@ -76,6 +76,10 @@
<HintPath>
$(BeatSaberDir)\Beat Saber_Data\Managed\Main.dll
</HintPath>
<Private>
False
</Private>
</Reference>
<Reference
Include=
"HMLib"
>
<HintPath>
$(BeatSaberDir)\Beat Saber_Data\Managed\HMLib.dll
</HintPath>
<Private>
False
</Private>
</Reference>
<Reference
Include=
"IPA.Loader"
>
<HintPath>
$(BeatSaberDir)\Beat Saber_Data\Managed\IPA.Loader.dll
</HintPath>
<Private>
False
</Private>
...
...
This diff is collapsed.
Click to expand it.
Properties/AssemblyInfo.cs
+
2
−
2
View file @
a80b51d1
...
...
@@ -9,5 +9,5 @@ using System.Runtime.InteropServices;
[
assembly
:
Guid
(
"7e8f3dda-fe61-4a71-9974-560fcad31286"
)]
[
assembly
:
AssemblyCulture
(
"en-US"
)]
[
assembly
:
AssemblyVersion
(
"1.0.
1
"
)]
[
assembly
:
AssemblyFileVersion
(
"1.0.
1
"
)]
[
assembly
:
AssemblyVersion
(
"1.0.
2
"
)]
[
assembly
:
AssemblyFileVersion
(
"1.0.
2
"
)]
This diff is collapsed.
Click to expand it.
manifest.json
+
1
−
1
View file @
a80b51d1
...
...
@@ -3,7 +3,7 @@
"id"
:
"MultiplayerColors"
,
"name"
:
"MultiplayerColors"
,
"author"
:
"pg12"
,
"version"
:
"1.0.
1
"
,
"version"
:
"1.0.
2
"
,
"description"
:
"Show your color scheme to other players"
,
"gameVersion"
:
"1.13.0"
,
"dependsOn"
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment