UnityMol  0.9.6-875
UnityMol viewer / In developement
SecondaryStructureManager.cs
Go to the documentation of this file.
1 using UnityEngine;
2 using System.Collections;
3 using System.Collections.Generic;
4 
6 
7 
8  private List<GameObject> ribbonsList = new List<GameObject>();
9  private GameObject ribbonsParent = new GameObject ("RibbonsParent");
10 
11  public void addRibbon(GameObject rib)
12  {
13  ribbonsList.Add(rib);
14  rib.transform.parent = ribbonsParent.transform;
15  }
16 
17  public GameObject[] getRibbons()
18  {
19  return ribbonsList.ToArray();
20  }
21  public void DestroyRibbons(){
22  foreach (GameObject rib in ribbonsList)
23  GameObject.Destroy (rib);
24 
25  ribbonsList.Clear ();
26  }
27  public void CreateRibbons(){
28  Ribbons ribbons = new Ribbons();
29  ribbons.CreateRibbons();
30  }
31 
32 }
33 
void CreateRibbons()
Definition: Ribbons.cs:869