Init() public method

public Init ( ) : void
return void
    //usesmousemenu
    private void createMouse(ArrayList playerList)
    {
        GameObject newObject = (GameObject)GameObject.Instantiate(mouseController, Vector3.zero, Quaternion.identity);
        newObject.name = "MouseInput";
        mouseControllerRef = newObject.GetComponent<MouseInput>();
        mouseControllerRef.players = playerList;

        int mouseCount = 0;
           foreach (PlayerInfo o in playerList) {
            if (!o.usesJoystick)
            {
                mouseCount++;
            }
        }
        mouseControllerRef.singleMouse = (mouseCount <= 1 && miceController == null);
        mouseControllerRef.SetUpRound();
        mouseControllerRef.Init(miceController);
        //If we don't check, the game will so single mouse if we have multi mouse enabled but only one mouse player
        if (miceController == null) miceController = mouseControllerRef.mousedriver;
    }