Store WIP

This commit is contained in:
2023-01-17 05:17:41 +05:30
parent fe14f582b9
commit df54712168
19 changed files with 5622 additions and 5 deletions

View File

@@ -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)
{