let mis-packed games load from res
timing display tweak
This commit is contained in:
parent
64cbe48863
commit
1d253d5eb3
|
@ -1246,11 +1246,6 @@ namespace HeavenStudio
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Debug.LogWarning($"Game prefab wasn't cached, loading from assetbundle for game {name}");
|
Debug.LogWarning($"Game prefab wasn't cached, loading from assetbundle for game {name}");
|
||||||
if (gameInfo.LoadingPrefab)
|
|
||||||
{
|
|
||||||
Debug.LogWarning($"Game {name} is already loading, using noGame");
|
|
||||||
return Resources.Load<GameObject>($"Games/noGame");
|
|
||||||
}
|
|
||||||
return gameInfo.LoadGamePrefab();
|
return gameInfo.LoadGamePrefab();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
@ -155,6 +155,8 @@ namespace HeavenStudio.Common
|
||||||
{
|
{
|
||||||
case Rating.OK:
|
case Rating.OK:
|
||||||
it = OK;
|
it = OK;
|
||||||
|
// makes the explosion smaller with less accurate inputs
|
||||||
|
it.transform.localScale = Vector3.one * (1f - (frac / 2f));
|
||||||
break;
|
break;
|
||||||
case Rating.Just:
|
case Rating.Just:
|
||||||
it = Just;
|
it = Just;
|
||||||
|
@ -165,13 +167,6 @@ namespace HeavenStudio.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// makes the explosion smaller with less accurate inputs
|
|
||||||
if (it == OK)
|
|
||||||
{
|
|
||||||
float okScalar = 1 - (frac / 2);
|
|
||||||
it.transform.localScale = new Vector3(okScalar, okScalar, it.transform.localScale.z);
|
|
||||||
}
|
|
||||||
|
|
||||||
it.transform.position = barTransform.position + new Vector3(0, barTransform.localScale.y * y, 0);
|
it.transform.position = barTransform.position + new Vector3(0, barTransform.localScale.y * y, 0);
|
||||||
it.GetComponent<ParticleSystem>().Play();
|
it.GetComponent<ParticleSystem>().Play();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue