UnityMol
0.9.6-875
UnityMol viewer / In developement
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
SecondaryStructureManager.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
using
System
.Collections;
3
using
System
.Collections.Generic;
4
5
public
class
SecondaryStructureManager
{
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
SecondaryStructureManager.addRibbon
void addRibbon(GameObject rib)
Definition:
SecondaryStructureManager.cs:11
SecondaryStructureManager.CreateRibbons
void CreateRibbons()
Definition:
SecondaryStructureManager.cs:27
System
UnityEngine
SecondaryStructureManager.DestroyRibbons
void DestroyRibbons()
Definition:
SecondaryStructureManager.cs:21
Ribbons
Definition:
Ribbons.cs:5
Ribbons.CreateRibbons
void CreateRibbons()
Definition:
Ribbons.cs:869
SecondaryStructureManager.ribbonsList
List< GameObject > ribbonsList
Definition:
SecondaryStructureManager.cs:8
SecondaryStructureManager.ribbonsParent
GameObject ribbonsParent
Definition:
SecondaryStructureManager.cs:9
SecondaryStructureManager.getRibbons
GameObject[] getRibbons()
Definition:
SecondaryStructureManager.cs:17
SecondaryStructureManager
Definition:
SecondaryStructureManager.cs:5
Assets
Scripts
SecondaryStructures
SecondaryStructureManager.cs
Generated on Wed Aug 3 2016 15:10:27 for UnityMol by
1.8.11