Cositas (~ ̄▽ ̄)~
This commit is contained in:
parent
db7b5af053
commit
55b18c6def
28 changed files with 4095 additions and 123 deletions
|
@ -62,6 +62,8 @@ public class PlayerController : MonoBehaviour {
|
|||
//vCam.m_Follow = _cameraTarget;
|
||||
|
||||
_currentSpeed = speed;
|
||||
|
||||
PlayerPrefs.SetInt("OrbsFound", 0);
|
||||
}
|
||||
|
||||
void Update() {
|
||||
|
@ -133,6 +135,9 @@ public class PlayerController : MonoBehaviour {
|
|||
_anim.SetTrigger(Die);
|
||||
_dead = true;
|
||||
ScreenShake.Shake(20f, .5f);
|
||||
}else if (col.CompareTag("Orb")) {
|
||||
PlayerPrefs.SetInt("OrbsFound", PlayerPrefs.GetInt("OrbsFound", 0) + 1);
|
||||
Destroy(col.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue