Beispiel #1
0
    public static ToolTypeValue Create(ToolType toolType)
    {
        ToolTypeValue toolTypeValue = CreateInstance <ToolTypeValue>();

        toolTypeValue.toolType = toolType;
        return(toolTypeValue);
    }
Beispiel #2
0
    public override Value Clone()
    {
        ToolTypeValue toolTypeValue = CreateInstance <ToolTypeValue>();

        toolTypeValue.toolType = toolType;
        return(toolTypeValue);
    }
Beispiel #3
0
    public static EquipTool CreateFromToolType(ToolType toolType)
    {
        ToolTypeValue typeValue = ToolTypeValue.Create(toolType);
        EquipTool     equipTool = CreateInstance <EquipTool>();

        equipTool.toolTypeValue = typeValue;
        return(equipTool);
    }