Ejemplo n.º 1
0
 public void SetBlockInput(bool block, InputBlockType blockType)
 {
     if (NetworkController.IsClient())
     {
         return;
     }
     BlockType = block ? blockType : (InputBlockType?)null;
     binding.CallFieldsOfType <InputBlocker>(field => field.SetBlocked(block), field => IsEventBlocked(field, blockType));
 }
Ejemplo n.º 2
0
        void Start()
        {
            if (networkController.IsClient())
            {
                return;
            }
            for (uint i = 0; i < Math.Min(nodeStartingAmount, nodeController.NodeLoadManager.NodeLoader.GetNodeNumber()); i++)
            {
                nodeController.NodeLoadManager.LoadNode(i);
                AddLowPriorityNode(i);
            }
            nodeController.OnNodeLoadSessionEnded?.Invoke();

            singleRemoveAmount           = connectionController.ConnectionDistribution.MaxVisibleNumber + 1;
            nodeController.OnNodeLoaded += (node, position) => AddHighPriorityNode(node.ID);
            nodeController.OnNodeLoaded += (node, position) => UnloadHandler();
            connectionController.OnConnectionRangeChanged += (start, end, count) => BehaviourConnectionChange();
            graphController.ConnectionMode.OnValueChanged += (mode) => BehaviourConnectionChange();
        }