using System; using System.Collections.Generic; using LTGame; using TGS; using UnityEngine; namespace Gameplay.LegionBattle { public abstract class BaseLegionBattleState : NBaseState { protected LegionBattle legionBattle; public BaseLegionBattleState(LegionBattle legionBattle, E_LegionBattleState state) : base((int)state) { this.legionBattle = legionBattle; } protected override void _OnEnter(NBaseState exitState, object param) { } protected override void _OnRunning() { } protected override void _OnExit(NBaseState exitState, object param) { } /// /// 检查能否点击地板 /// protected void CheckCellClick(TerrainGridSystem tgs, int cellIndex, int buttonIndex) { DebugUtil.LogG($"用户点击格子:{cellIndex}"); OnCellClick(tgs, cellIndex, buttonIndex); } /// /// 点击地板格子 /// /// /// /// protected abstract void OnCellClick(TerrainGridSystem tgs, int cellIndex, int buttonIndex); /// /// 点击屏幕 /// /// protected abstract void OnClick(Vector2 screenPosition); } }