Files
back_cantanBuilding/Assets/Scripts/UI/Home/HomeBtnHexMap.cs
2026-05-26 16:15:54 +08:00

41 lines
901 B
C#

using System;
using asap.core;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.UI;
namespace game
{
public class HomeBtnHexMap : MonoBehaviour
{
private Button _btnEnter;
private void Awake()
{
_btnEnter = transform.GetComponent<Button>();
}
void Start()
{
_btnEnter.onClick.AddListener(OnBtnEnter);
}
private void OnBtnEnter()
{
Log("OnBtnEnter");
// 进入游戏场景
StartEnter();
}
private void StartEnter()
{
var fcm = GContext.container.Resolve<FishingChallengeManager>();
fcm.InitHexMap();
}
private static void Log(object message)
{
Debug.Log($"<color=orange>HomeBtnHexMap => {message} </color>");
}
}
}