예제 #1
0
    public void Setup(string _name = "")
    {
        if (!string.IsNullOrEmpty(_name))
        {
            mapName = _name;
        }

        editorOpen = false;
        prevState  = false;

        button = null;
        axis1D = null;
        axis2D = null;


        axisType = AxisType.Button;

        typeButton = InputTypeButton.ThumbClick;
        type1D     = InputTypeAxis1D.Trigger;
        type2D     = InputTypeAxis2D.Thumb2D;

        Activated   = new UnityEventVoid();
        Deactivated = new UnityEventVoid();

        UpdateBool = new UnityEventButton();
        Update1D   = new UnityEventFloat();

        Moved2D  = new UnityEventAxis2D();
        Moved2DX = new UnityEventFloat();
        Moved2DY = new UnityEventFloat();
    }