Пример #1
0
    void Start()
    {
        NetworkSocket.Initialise(25001, 500); // Initialise un socket au port 25000 avec 500 connexions au max.
        InitialiseModules();
        Activate();
        BloodAndBileEngine.NetworkCommandManager.Initialize();
        InputHandlers = new BloodAndBileEngine.InputHandlersManager();
        InputHandlers.Add("Activate", (object[] parameters) => Activate());
        InputHandlers.Add("Deactivate", (object[] parameters) => Deactivate());

        PlayerControlManager = new BloodAndBileEngine.PlayerControlCommandManager();
        PlayerControlManager.SetExecuteLocally();
    }
Пример #2
0
    //

    void Start()
    {
        if (Instance == null)
        {
            Instance = this;
            NetworkSocket.Initialise(24999); // Initialise un Socket pour cette application sur le port 24999.
            BloodAndBileEngine.EntitiesManager.Initialise();
            BloodAndBileEngine.NetworkCommandManager.Initialize();
        }
        else
        {
            Destroy(gameObject);
        }
    }