/// <summary>
    /// Creates an annotation box and shows it
    /// </summary>
    /// <param name="container"></param>
    public static void Show(AnnotationContainer container)
    {
        GameObject    instance      = (GameObject)GameObject.Instantiate(Resources.Load("AnnotationBox"));
        AnnotationBox annotationBox = instance.GetComponent <AnnotationBox>();

        annotationBox.container = container;
        container.Select();
        currentlyOpenAnnotationBox = annotationBox;
    }
Ejemplo n.º 2
0
    protected override void Start()
    {
        base.Start();
        InitializeUI();

        if (Container != null)
        {
            caption.Text = Container.Annotation.Text;
            if (container.AnnotationClip == null)
            {
                AudioState = AudioState.NONE_RECORDED;
            }
            else
            {
                AudioState = AudioState.STOPPED;
            }
            container.annotationManager.CurrentlyOpenAnnotationMenu = this;
            container.Select();
        }
        else
        {
            caption.Text = "No annotation associated!";
        }
    }