getType() static private method

static private getType ( string name ) : Type
name string
return System.Type
コード例 #1
0
        public GameScenesVisibility(params GameScenes[] gameScenes)
        {
            Type gameScenesVisibilityType = ToolbarTypes.getType("Toolbar.GameScenesVisibility");

            realGameScenesVisibility = Activator.CreateInstance(gameScenesVisibilityType, new object[] { gameScenes });
            visibleProperty          = ToolbarTypes.getProperty(gameScenesVisibilityType, "Visible");
        }
コード例 #2
0
        public PopupMenuDrawable()
        {
            Type popupMenuDrawableType = ToolbarTypes.getType("Toolbar.PopupMenuDrawable");

            realPopupMenuDrawable   = Activator.CreateInstance(popupMenuDrawableType, null);
            updateMethod            = ToolbarTypes.getMethod(popupMenuDrawableType, "Update");
            drawMethod              = ToolbarTypes.getMethod(popupMenuDrawableType, "Draw");
            addOptionMethod         = ToolbarTypes.getMethod(popupMenuDrawableType, "AddOption");
            addSeparatorMethod      = ToolbarTypes.getMethod(popupMenuDrawableType, "AddSeparator");
            destroyMethod           = ToolbarTypes.getMethod(popupMenuDrawableType, "Destroy");
            onAnyOptionClickedEvent = ToolbarTypes.getEvent(popupMenuDrawableType, "OnAnyOptionClicked");
        }