Exemplo n.º 1
0
    void Start()
    {
        BuildManager.Instance().Init();
        ScoreManager.Instance().Init();
        SeamlessMap.Instance().Init();
        FogOfWarManager.Instance().Init();

        GameStart();
    }
Exemplo n.º 2
0
    //移动镜头到节点
    public void CameraMoveToPoint(Vector2Int _pos)
    {
        Vector2Int center = new Vector2Int(NodeManager.Instance().nodeCountY / 2, NodeManager.Instance().nodeCountX / 2);
        float      x      = (_pos.x - center.x) * MapManager.Instance().nodePaddingY;
        float      y      = (_pos.y - center.y) * MapManager.Instance().nodePaddingX;

        x += 2 * MapManager.Instance().nodePaddingY;

        SeamlessMap.Instance().MoveRight(y);
        SeamlessMap.Instance().MoveUp(x);
    }