Shop weitergebaut, CreditsScene angepasst, MainMenue weiter verschönert, an Monetarisierung gearbeitet

This commit is contained in:
2026-01-29 09:53:57 +01:00
parent 4c5de64949
commit 7aadd14cbc
19 changed files with 2855 additions and 127 deletions

View File

@@ -1,4 +1,5 @@
using System.Xml.Serialization;
using TMPro;
using Unity.VisualScripting;
using UnityEngine;
@@ -6,26 +7,31 @@ public class ShopScript : MonoBehaviour
{
[SerializeField] GameObject shopPanel;
[SerializeField] GameObject errorPanel;
public InventoryScript player;
InventoryScript player;
private bool paymentSystemActive = true;
private bool paymentSystemActive = false;
[SerializeField] TMP_Text text;
TMP_Text textfeld;
//InventoryScript player;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
player = GetComponent<InventoryScript>();
shopPanel.SetActive(false);
errorPanel.SetActive(false);
textfeld = this.text;
//player = GetComponent<InventoryScript>();
}
// Update is called once per frame
void Update()
{
textfeld.text = InventoryScript.deineMudda.ToString();
}
public void OpenShop()
{
shopPanel.SetActive(true);
@@ -36,6 +42,11 @@ public class ShopScript : MonoBehaviour
shopPanel.SetActive(false);
}
public void ClosePanel()
{
errorPanel.SetActive(false);
}
public void AddLife()
{
player.Health++;
@@ -61,6 +72,9 @@ public class ShopScript : MonoBehaviour
public void BuyMore()
{
int manyGemsCost = 200;
if (paymentSystemActive)
{