void Start() { FootageDragAndDrop = FindObjectOfType <FootageDragAndDrop>(); var button = GetComponent <Button>(); button.onClick.AddListener(OnClick); }
// Update is called once per frame void Update() { if (arrow == null) { arrow = gameObject.transform.parent.transform.GetChild(0).transform.GetChild(1).gameObject; } FootageDragAndDrop = GameObject.Find("FootageViewer").GetComponent <FootageDragAndDrop> (); }
void Start() { Imported = true; FootageDragAndDrop = FindObjectOfType <FootageDragAndDrop> (); GetFileExtantion(gameObject.transform.GetChild(0).GetComponent <InputField>().text); FileSceneName = gameObject.transform.GetChild(0).transform.GetComponent <InputField> ().text; }
// Use this for initialization void Start() { FootageDragAndDrop = FindObjectOfType <FootageDragAndDrop> (); setScroll = true; }
// Use this for initialization void Start() { FootageDragAndDrop = GameObject.Find("FootageViewer").GetComponent <FootageDragAndDrop> (); }