// Update is called on{}ce per frame
    void Update()
    {
        Position = gameObject.transform.position;

        if (!Preview)
        {
            if (addMediaHotspot == null)
            {
                addMediaHotspot = GameObject.Find("AddHelpHotspot").GetComponent <AddHelpHotspot>();
            }
        }
        else
        {
            //    FullScreenVideoUIPrv = GameObject.Find("FullScreenPreView").gameObject;
        }
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        text                = false;
        movie               = false;
        helpHotspot         = FindObjectOfType <AddHelpHotspot> ();
        Action_Name         = helpHotspot.ActionLable;
        Lable_Text          = helpHotspot.LableText_InputField;
        Lable_Title         = helpHotspot.LableTitle_InputField;
        VideoOption         = helpHotspot.VideoOption;
        TextOption          = helpHotspot.TextOption;
        LableBox            = helpHotspot.LableBox;
        MediaFilePrfb       = helpHotspot.MediaFilePrefab;
        targetObject        = helpHotspot.targetObject;
        menuPanal           = helpHotspot.BlueHotspotPanal;
        navigationPanal     = helpHotspot.yellowHotspotPanal;
        mediaPanal          = helpHotspot.purpleHotspotPanal;
        textPanal           = helpHotspot.ActionTextPanal;
        actionPanal         = helpHotspot.ActionHotspotPanel;
        helpPanal           = helpHotspot.HelpHotspotPanal;
        timeLine            = helpHotspot.timeLine;
        ColorGiver          = helpHotspot.ColorGiver;
        NewHotspotContainer = helpHotspot.NewHotspotContainer;
        ActionList_DropDown = helpHotspot.ActionList_DropDown;
        AlwaysVisible       = helpHotspot.AlwaysToggle;
        Action_Name.text    = "";
        targetObject.value  = 0;
        VideoOption.gameObject.SetActive(false);
        TextOption.gameObject.SetActive(false);
        Dome            = GameObject.Find("DomeFull").GetComponent <SetupDome>();
        mySprite        = helpHotspot.mySprite;
        Lable_Text.text = "";
        Lable_Text.onEndEdit.AddListener(delegate {
            addLableText();
        });

        Lable_Title.text = "";
        Lable_Title.onEndEdit.AddListener(delegate {
            addLableTitle();
        });

        targetObject.onValueChanged.AddListener(delegate {
            Debug.Log("abc");
            if (SetupDome.SelectedHotspot == gameObject)
            {
                InstantiateObjects(targetObject.captionText.text);
                ActionFunction = targetObject.captionText.text;
                Debug.Log("bac");
            }
        });

        Action_Name.onEndEdit.AddListener(delegate {
            if (SetupDome.SelectedHotspot == gameObject)
            {
                addActionText();
            }
        });
        //InstantiateLable ();
        AlwaysVisible.onValueChanged.AddListener(delegate {
            //	VisibleAfter();
        });
    }
 // Use this for initialization
 void Start()
 {
     ActionFunction  = "MediaHotspot";
     addMediaHotspot = GameObject.Find("AddHelpHotspot").GetComponent <AddHelpHotspot>();
     landscape       = true;
 }