minor errors

This commit is contained in:
playinful 2024-05-19 15:18:14 -04:00
parent a0e2fb9ef5
commit 7baad9bdf7
2 changed files with 6 additions and 5 deletions

View file

@ -58,7 +58,7 @@ GameObject:
- component: {fileID: 8426454068735829380}
- component: {fileID: 1802914307908322209}
m_Layer: 0
m_Name: CatchOfTheDay
m_Name: catchOfTheDay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

View file

@ -243,7 +243,7 @@ namespace HeavenStudio.Games
float newPos = func(0f, 1f, normalizedBeat);
Vector3 diff = _CurrentAnglerMoveArgs.EndPosition - _CurrentAnglerMoveArgs.StartPosition;
AnglerTransform.localPosition = _AnglerBasePosition + _CurrentAnglerMoveArgs.StartPosition + (diff * newPos);
if (normalizedBeat >= 1f)
{
AnglerTransform.localPosition = _AnglerBasePosition + _CurrentAnglerMoveArgs.EndPosition;
@ -297,6 +297,7 @@ namespace HeavenStudio.Games
{
DestroyOrphanedLakes();
CleanupFishSounds();
ActiveLakes = new Dictionary<RiqEntity, LakeScene>();
// set ann movement
foreach (RiqEntity e in EventCaller.GetAllInGameManagerList("catchOfTheDay", new string[] { "moveAngler" }).Where(e => e.beat <= beat).OrderBy(e => e.beat))
@ -497,14 +498,14 @@ namespace HeavenStudio.Games
{
if (ActiveLakes.ContainsKey(e))
return null;
if (ActiveLakes.Count >= MAX_LAKES)
return null;
int sort = CacheFishes().FindIndex(x => e == x);
if (sort < 0)
return null;
CleanupFishSounds();
Debug.Log($"Spawning Lake {sort}");