示例#1
0
    private static GameObject GenerateDiskObj(DatabaseUtilities.Column cylinderInfo, Transform harness)
    {
        //Generate Disk object from factory.
        GameObject disk = Generate((int)View_Type.Disk);

        float  scaleSize    = float.Parse(cylinderInfo.fields[0]);
        string dataTypeName = cylinderInfo.GetName();
        string hexColor     = cylinderInfo.GetColor();

        //Initialize the disk object...
        disk.GetComponent <Disk>().Initialize(harness, dataTypeName, hexColor, scaleSize);

        return(disk);
    }
示例#2
0
    private static GameObject GenerateColumnObj(DatabaseUtilities.Column col, Transform parent, int key)
    {
        GameObject curCol = Generate((int)View_Type.Column);

        curCol.GetComponent <Column>().Initialize(key, parent, col.GetName(), col.GetId(), col.GetColor());

        return(curCol);
    }