Exemple #1
0
// Load Exhibit at Current Wishlist Index to Object Viewer
    public void LoadExhibit()
    {
        if (Wishlist.Count > 0)
        {
            if (wishlistIndex >= Wishlist.Count)
            {
                wishlistIndex = Wishlist.Count - 1;
            }
            // Get ObjectViewer Ready - Destroy Exisiting objects, Get Current Object, Load it in Viewer
            ViewObjectScript.DestroyAllChildren();
            ViewObjectScript.StartObjectViewer();
            ViewObjectScript.GetObjectToBeViewed(Exhibits.GetChild(Wishlist [wishlistIndex].index).gameObject);
            ViewObjectScript.ViewSelectedObject();
        }
    }