Пример #1
0
 private RNAModel registerRNAModel()
 {
     if (rna == null)
     {
         rna = RNAModel.Instance;
     }
     // niceNameRNA = rna.niceName;
     Debug.Log("SeqModel: registered RNA.");
     return(rna);
 }
Пример #2
0
        public void Start()
        {
            Debug.Log("RNAPanelController.Start()");
            RNA_Model = RNAModel.Instance;                       //get the RNA Model.Rattus norvegicus
            key       = RNA_Model.niceName["Rattus norvegicus"]; //load the default key on start.
            seqLength = RNA_Model.data[key][1].Length;
            textureY  = seqLength / textureX;
            numRows   = 12;

            //Load UIs
            RNAUI = GameObject.Find("CursorRenderers/Look/DNA_Letter_UI");
            RNAUI.SetActive(false);
            RightIndexUI = GameObject.Find("CursorRenderers/RightIndex/DNA_Letter_UI");
            RightIndexUI.SetActive(false);
            RightIndexSelection = GameObject.Find("CursorRenderers/RightIndex/HoverOpaqueCursorArcRenderer-Default");

            //figure out where the user is looking and pointing.
            HoverLookCursor          = Look.GetComponent <HoverCursorFollower>();
            HoverRightIndexTransform = RightIndex.transform;

            //subscribe updateUV method to UVCoordChangedEvent.
            UVCoordChangedEvent  += updateRightIndexUV;
            NiceNameChangedEvent += updateNiceNameKey;
        }