Post release fixes
This commit is contained in:
parent
36aa1ee5a7
commit
85afd9ab16
|
|
@ -486,7 +486,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
txt_money: {fileID: 1209384639}
|
txt_money: {fileID: 1209384639}
|
||||||
moneyMultiplier: 5
|
moneyMultiplier: 5000
|
||||||
txtMoneyOffset: {x: 0, y: 2, z: 0}
|
txtMoneyOffset: {x: 0, y: 2, z: 0}
|
||||||
gameOverPanel: {fileID: 786266133}
|
gameOverPanel: {fileID: 786266133}
|
||||||
startPanel: {fileID: 1507447646}
|
startPanel: {fileID: 1507447646}
|
||||||
|
|
@ -840,7 +840,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Xsmoothness: 1
|
Xsmoothness: 1
|
||||||
Ysmoothness: 0.1
|
Ysmoothness: 0.2
|
||||||
offset: {x: 0, y: 0}
|
offset: {x: 0, y: 0}
|
||||||
shakeIntensity: {x: 0.1, y: 0.1, z: 0.1}
|
shakeIntensity: {x: 0.1, y: 0.1, z: 0.1}
|
||||||
shakeFX_good: {fileID: 948899437}
|
shakeFX_good: {fileID: 948899437}
|
||||||
|
|
@ -2644,7 +2644,7 @@ SpriteRenderer:
|
||||||
m_FlipX: 0
|
m_FlipX: 0
|
||||||
m_FlipY: 0
|
m_FlipY: 0
|
||||||
m_DrawMode: 2
|
m_DrawMode: 2
|
||||||
m_Size: {x: 185.78857, y: 3177.2842}
|
m_Size: {x: 185.78857, y: 6796.333}
|
||||||
m_AdaptiveModeThreshold: 0.5
|
m_AdaptiveModeThreshold: 0.5
|
||||||
m_SpriteTileMode: 0
|
m_SpriteTileMode: 0
|
||||||
m_WasSpriteAssigned: 1
|
m_WasSpriteAssigned: 1
|
||||||
|
|
@ -2658,7 +2658,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1734205112}
|
m_GameObject: {fileID: 1734205112}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 303.3, y: 78.6767, z: 0}
|
m_LocalPosition: {x: 248.4, y: 167.8996, z: 0}
|
||||||
m_LocalScale: {x: 0.05340552, y: 0.04930737, z: 1}
|
m_LocalScale: {x: 0.05340552, y: 0.04930737, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
|
|
@ -2766,7 +2766,7 @@ MonoBehaviour:
|
||||||
effectOffset: {x: 0.34, y: 0.37, z: 0}
|
effectOffset: {x: 0.34, y: 0.37, z: 0}
|
||||||
eulerAngles: {x: 0, y: 0, z: 0}
|
eulerAngles: {x: 0, y: 0, z: 0}
|
||||||
movingSpeed: 0.1
|
movingSpeed: 0.1
|
||||||
boostSpeed: 0.35
|
boostSpeed: 0.01
|
||||||
turnAngle: 31
|
turnAngle: 31
|
||||||
trailPrefab: {fileID: 1182127216}
|
trailPrefab: {fileID: 1182127216}
|
||||||
currentTrail: {fileID: 0}
|
currentTrail: {fileID: 0}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ public class GameManager : MonoBehaviour
|
||||||
void Update(){
|
void Update(){
|
||||||
if(!PlayerController.Started){return;}
|
if(!PlayerController.Started){return;}
|
||||||
moneyEarned = (PlayerController.t.position.y*moneyMultiplier);
|
moneyEarned = (PlayerController.t.position.y*moneyMultiplier);
|
||||||
txt_money.text = "$"+moneyEarned.ToString("n4");
|
txt_money.text = "$"+moneyEarned.ToString("n0");
|
||||||
|
|
||||||
txt_money.rectTransform.position = Camera.main.WorldToScreenPoint(PlayerController.t.position + txtMoneyOffset);
|
txt_money.rectTransform.position = Camera.main.WorldToScreenPoint(PlayerController.t.position + txtMoneyOffset);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,12 @@ public class PlayerController : MonoBehaviour
|
||||||
IEnumerator giveBoost(float perc){
|
IEnumerator giveBoost(float perc){
|
||||||
boosting=true;
|
boosting=true;
|
||||||
float newY = transform.position.y * perc;
|
float newY = transform.position.y * perc;
|
||||||
|
float deltaY = Mathf.Abs(newY - transform.position.y);
|
||||||
spriteRenderer.sprite = (perc > 1) ? upwardSprite : downwardSprite;
|
spriteRenderer.sprite = (perc > 1) ? upwardSprite : downwardSprite;
|
||||||
// float boostingSpeed = transform.position.y * (1f/boostSpeed);
|
// float boostingSpeed = transform.position.y * (1f/boostSpeed);
|
||||||
float boostingSpeed = boostSpeed;
|
float boostingSpeed = boostSpeed * deltaY;
|
||||||
if(transform.position.y < 250){boostingSpeed = boostSpeed/2f;}
|
// if(transform.position.y < 250){boostingSpeed = boostSpeed/2f;}
|
||||||
|
ToggleUpmoneyEffect(true);
|
||||||
if(perc > 1){
|
if(perc > 1){
|
||||||
while(transform.position.y < newY){
|
while(transform.position.y < newY){
|
||||||
transform.position += new Vector3(0,boostingSpeed,0);
|
transform.position += new Vector3(0,boostingSpeed,0);
|
||||||
|
|
@ -96,6 +98,8 @@ public class PlayerController : MonoBehaviour
|
||||||
}
|
}
|
||||||
spriteRenderer.sprite = normalSprite;
|
spriteRenderer.sprite = normalSprite;
|
||||||
boosting=false;
|
boosting=false;
|
||||||
|
ToggleUpmoneyEffect(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -113,8 +117,13 @@ public class PlayerController : MonoBehaviour
|
||||||
newTrail.GetComponent<TrailRenderer>().startColor = newTrail.GetComponent<TrailRenderer>().endColor = (isUp) ? Color.green:Color.red;
|
newTrail.GetComponent<TrailRenderer>().startColor = newTrail.GetComponent<TrailRenderer>().endColor = (isUp) ? Color.green:Color.red;
|
||||||
|
|
||||||
|
|
||||||
GetComponent<SpriteRenderer>().sprite = (isUp) ? upwardSprite : downwardSprite;
|
GetComponent<SpriteRenderer>().sprite = (isUp) ? upwardSprite : normalSprite;
|
||||||
if (isUp)
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void ToggleUpmoneyEffect(bool value){
|
||||||
|
if (value)
|
||||||
{
|
{
|
||||||
UpMoneyEffect.emissionRate = defeaultEmitRate;
|
UpMoneyEffect.emissionRate = defeaultEmitRate;
|
||||||
}
|
}
|
||||||
|
|
@ -122,7 +131,6 @@ public class PlayerController : MonoBehaviour
|
||||||
{
|
{
|
||||||
UpMoneyEffect.emissionRate = 0;
|
UpMoneyEffect.emissionRate = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user