示例#1
0
    public void MoveForward()
    {
        FloorNode TargetNode = m_CurrentFloorManager.GetNode(currentFloorNode.m_PositionInGrid, CurrentDirection);

        if (TargetNode == null)
        {
            Debug.Log("Cant Find Node " + currentFloorNode.m_PositionInGrid);
            return;
        }

        StartCoroutine(DirectMovement(transform, TargetNode, 0.6f));

        int index = m_CurrentFloorManager.m_FloorCore.GetIndex(TargetNode.m_PositionInGrid.x,
                                                               TargetNode.m_PositionInGrid.y);

        m_Map.SetPlayerNode(index);
    }