Skip to content

Commit

Permalink
Fix variable naming
Browse files Browse the repository at this point in the history
This is what 3 hours of sleep does to someone.
  • Loading branch information
irlbunny committed Sep 6, 2024
1 parent 598bab9 commit 5acdbb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SiraUtil/Sabers/SiraSaber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class SiraSaber : MonoBehaviour
private SaberTypeObject _saberTypeObject = null!;
private SaberModelProvider _saberModelProvider = null!;
private SaberModelController _saberModelController = null!;
private SaberModelContainer.InitData _saberModelControllerInitData = new SaberModelContainer.InitData();
private SaberModelContainer.InitData _saberModelContainerInitData = new SaberModelContainer.InitData();
private readonly Queue<Action> _colorProcessNextFrame = new();
private bool _constructedThisFrame = false;

Expand All @@ -40,14 +40,14 @@ internal void Construct(
NoteCutter noteCutter,
ColorManager colorManager,
SaberModelProvider saberModelProvider,
[InjectOptional] SaberModelContainer.InitData saberModelControllerInitData)
[InjectOptional] SaberModelContainer.InitData saberModelContainerInitData)
{
_noteCutter = noteCutter;
_colorManager = colorManager;
_saberModelProvider = saberModelProvider;

if (saberModelControllerInitData != null)
_saberModelControllerInitData = saberModelControllerInitData;
if (saberModelContainerInitData != null)
_saberModelContainerInitData = saberModelContainerInitData;
}

internal void Setup<T>(SaberType saberType) where T : Saber
Expand All @@ -71,7 +71,7 @@ internal void Setup<T>(SaberType saberType) where T : Saber

_saberTypeObject.SetField("_saberType", saberType);
_saberModelController = _saberModelProvider.NewModel(saberType);
_saberModelController.Init(transform, Saber, _saberModelControllerInitData.trailTintColor);
_saberModelController.Init(transform, Saber, _saberModelContainerInitData.trailTintColor);
_constructedThisFrame = true;
}

Expand Down

0 comments on commit 5acdbb2

Please sign in to comment.