Ejemplo n.º 1
0
    // Update is called once per frame
    //void LateUpdate()
    private void Update()
    {
        if (Program.MouseListener.IsAWindowScrollableShownNow() || CamControl.IsMainMenuOn() ||
            ScrollViewShowInventory.IsMouseOnMe || Program.IsMouseOnScrollableContent)
        {
            return;
        }

        //initiales current obj pos and rot to...
        InitializeObjects();
        CreateTargetAndUpdate();

        if (!Program.IsInputLocked &&
            U2D.IsMouseOnScreen() &&
            !MiniMapRTS.isOnTheLimits && BuildingPot.Control != null && BuildingPot.Control.Registro.AllBuilding.Count > 0)
        {
            ControlInput();
            MouseInBorderDealer();
        }

        AlignYInZero();

        RotateScript();
        rotateRTS.Update();

        //CameraFOV();
    }