Store WIP
This commit is contained in:
@@ -4,6 +4,7 @@ using UnityEngine;
|
||||
|
||||
public class Player : MonoBehaviour
|
||||
{
|
||||
public Color[] pogeColors;
|
||||
[SerializeField]private Transform body;
|
||||
[field:SerializeField]public Vector2 Velocity {get; private set;}
|
||||
[SerializeField]private float gravity=1;
|
||||
@@ -38,6 +39,7 @@ public class Player : MonoBehaviour
|
||||
timeAliveMoney = GetComponent<TimeAliveMoney>();
|
||||
isAlive = true;
|
||||
spriteRenderer.sprite =normalFace;
|
||||
spriteRenderer.color = pogeColors[DataManager.selectedPogeLevel];
|
||||
|
||||
startPos = body.position;
|
||||
Velocity = new Vector2(forwardSpeed,0);
|
||||
@@ -51,7 +53,9 @@ public class Player : MonoBehaviour
|
||||
int lastX = 0;
|
||||
void FixedUpdate()
|
||||
{
|
||||
|
||||
if(Input.GetKey(KeyCode.X)){
|
||||
DataManager.total = 5000000;
|
||||
}
|
||||
|
||||
if (!gameStarted)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user