Beispiel #1
0
    private GameObject CreateAndRotateItemMesh(GameObject mesh, string prefabName, string title, Rect displayRect, float rotateSpeed)
    {
        mesh.RotateItemMeshInGUI(rotateSpeed, title, displayRect);

        if (null == meshToDisplay)
        {
            mesh = GameObjectExtension.CreateItemMesh(prefabName, displayRect);
        }

        return(mesh);
    }