Exemple #1
0
 void Start()
 {
     // Create Legend Entry
     legendEntryParent      = theGraph.CreateNode(legendEntryPrefab, this.gameObject);
     legendEntryParent.name = this.name + "-Legend";
     legendEntryParent.GetComponent <WMG_Node>().seriesRef = this;
     legendEntryParent.transform.parent = theGraph.legendParent.transform;
     legendEntryNodeLeft  = theGraph.CreateNode(legendEntryEmptyNodePrefab, legendEntryParent);
     legendEntryNodeRight = theGraph.CreateNode(legendEntryEmptyNodePrefab, legendEntryParent);
     if (theGraph.isDaikon())
     {
         theGraph.changeSpritePivot(legendEntryNodeLeft, WMG_Graph_Manager.WMGpivotTypes.Center);
         theGraph.changeSpritePivot(legendEntryNodeRight, WMG_Graph_Manager.WMGpivotTypes.Center);
     }
 }