예제 #1
0
    private void TryMoveToTile(Vector2 tilePoint)
    {
        var tileList = m_MapController.FindPath(m_HeroController.CurTilePoint, tilePoint);

        if (tileList == null)
        {
            return;
        }

        if (m_HeroController.IsMoving())
        {
            return;
        }
        var startPoint = tileList.Pop(); // 去掉开始点

        m_CameraController.LockToTarget(m_HeroController.GetHeroGo());
        m_HeroController.StartMove(tileList);
    }