NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/LegionBattle/State/LegionBattleStateBattle.cs

40 lines
1.1 KiB
C#

using System;
using Cysharp.Threading.Tasks;
using LTGame;
using PhxhSDK;
using TGS;
using UnityEngine;
namespace Gameplay.LegionBattle
{
public class LegionBattleStateBattle : BaseLegionBattleState
{
public LegionBattleStateBattle(LegionBattle legionBattle) : base(legionBattle, E_LegionBattleState.Battle)
{
}
protected override void _OnEnter(NBaseState exitState, object param)
{
}
protected override void OnClick(Vector2 screenPosition)
{
int clickCellIndex = GroundHitHelper.CalcHitCellIndex(screenPosition, legionBattle.Map.TerrainGridSystem);
if (clickCellIndex < 0)
return;
CheckCellClick(legionBattle.Map.TerrainGridSystem, clickCellIndex, 0);
}
protected override void OnCellClick(TerrainGridSystem tgs, int cellIndex, int buttonIndex)
{
if (InputManager.Instance.HandledThisFrame())
return;
Map map = legionBattle.Map;
if (null == map)
return;
}
}
}