minor errors
This commit is contained in:
parent
a0e2fb9ef5
commit
7baad9bdf7
|
@ -58,7 +58,7 @@ GameObject:
|
||||||
- component: {fileID: 8426454068735829380}
|
- component: {fileID: 8426454068735829380}
|
||||||
- component: {fileID: 1802914307908322209}
|
- component: {fileID: 1802914307908322209}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: CatchOfTheDay
|
m_Name: catchOfTheDay
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
|
|
|
@ -243,7 +243,7 @@ namespace HeavenStudio.Games
|
||||||
float newPos = func(0f, 1f, normalizedBeat);
|
float newPos = func(0f, 1f, normalizedBeat);
|
||||||
Vector3 diff = _CurrentAnglerMoveArgs.EndPosition - _CurrentAnglerMoveArgs.StartPosition;
|
Vector3 diff = _CurrentAnglerMoveArgs.EndPosition - _CurrentAnglerMoveArgs.StartPosition;
|
||||||
AnglerTransform.localPosition = _AnglerBasePosition + _CurrentAnglerMoveArgs.StartPosition + (diff * newPos);
|
AnglerTransform.localPosition = _AnglerBasePosition + _CurrentAnglerMoveArgs.StartPosition + (diff * newPos);
|
||||||
|
|
||||||
if (normalizedBeat >= 1f)
|
if (normalizedBeat >= 1f)
|
||||||
{
|
{
|
||||||
AnglerTransform.localPosition = _AnglerBasePosition + _CurrentAnglerMoveArgs.EndPosition;
|
AnglerTransform.localPosition = _AnglerBasePosition + _CurrentAnglerMoveArgs.EndPosition;
|
||||||
|
@ -297,6 +297,7 @@ namespace HeavenStudio.Games
|
||||||
{
|
{
|
||||||
DestroyOrphanedLakes();
|
DestroyOrphanedLakes();
|
||||||
CleanupFishSounds();
|
CleanupFishSounds();
|
||||||
|
ActiveLakes = new Dictionary<RiqEntity, LakeScene>();
|
||||||
|
|
||||||
// set ann movement
|
// set ann movement
|
||||||
foreach (RiqEntity e in EventCaller.GetAllInGameManagerList("catchOfTheDay", new string[] { "moveAngler" }).Where(e => e.beat <= beat).OrderBy(e => e.beat))
|
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))
|
if (ActiveLakes.ContainsKey(e))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (ActiveLakes.Count >= MAX_LAKES)
|
if (ActiveLakes.Count >= MAX_LAKES)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
int sort = CacheFishes().FindIndex(x => e == x);
|
int sort = CacheFishes().FindIndex(x => e == x);
|
||||||
if (sort < 0)
|
if (sort < 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
CleanupFishSounds();
|
CleanupFishSounds();
|
||||||
|
|
||||||
Debug.Log($"Spawning Lake {sort}");
|
Debug.Log($"Spawning Lake {sort}");
|
||||||
|
|
Loading…
Reference in a new issue