超大量的更新 修复很多问题,gameplay特效初步

This commit is contained in:
2026-02-14 23:46:20 +08:00
parent ef8eb67259
commit 3a7a0b4669
360 changed files with 85670 additions and 4144 deletions
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System;
@@ -6,7 +6,7 @@ using System.IO;
public class game_card_Prefab : MonoBehaviour, IPointerClickHandler
{
[Header("PrefabϢ")]
[Header("Inspector")]
public Image card_icon_image;
public Text card_name_text;
public Text authorName_text;
@@ -19,11 +19,10 @@ public class game_card_Prefab : MonoBehaviour, IPointerClickHandler
[Header("Optional clickable Button (auto-find if null)")]
public Button clickButton;
// Ӧ index.html ı· file:// ǰ׺
// Documentation text normalized.
private string indexFilePath;
// loadLittleGamesPrefab ı·
public void SetData(string indexPath, string cardName, string authorName, string description, string isOfficial, string source, string yyyyMmDd, string version = null)
public void SetData(string indexPath, string cardName, string authorName, string description, string isOfficial, string source, string yyyyMmDd, string version)
{
indexFilePath = indexPath;
if (card_name_text != null) card_name_text.text = cardName ?? "";
@@ -96,7 +95,7 @@ public class game_card_Prefab : MonoBehaviour, IPointerClickHandler
OpenIndexPath();
}
// ʱͨ WebViewLauncher 򿪶Ӧ index.html
// Documentation text normalized.
public void OnPointerClick(PointerEventData eventData)
{
UnityEngine.Debug.Log($"game_card_Prefab.OnPointerClick: indexPath='{indexFilePath}'");
@@ -111,7 +110,7 @@ public class game_card_Prefab : MonoBehaviour, IPointerClickHandler
return;
}
// ʹ WebViewLauncher
// Documentation text normalized.
if (WebViewLauncher.Instance != null)
{
UnityEngine.Debug.Log("Calling WebViewLauncher.OpenUrl with: " + indexFilePath);
@@ -135,7 +134,7 @@ public class game_card_Prefab : MonoBehaviour, IPointerClickHandler
else
{
UnityEngine.Debug.LogWarning("WebViewLauncher instance not found. Attempting to start new launcher.");
// Բҳе WebViewLauncher 򴴽һµ GameObject
// Documentation text normalized.
var launcherObj = UnityEngine.Object.FindAnyObjectByType<WebViewLauncher>();
if (launcherObj != null)
{