Exemple #1
0
    void Awake()
    {
        dropdownDictionary = new Dictionary <int, string>();
        symbolDictionary   = new Dictionary <string, int>();
        FillSymbolDropdown(ref symbolDropdown, ref dropdownDictionary, typeof(Parametric_Turtle));
        foreach (KeyValuePair <int, string> kvp in dropdownDictionary)
        {
            symbolDictionary[kvp.Value] = kvp.Key;
        }

        PanelList = new List <GameObject>();
        PanelList.Add(ObjectPanel);
        PanelList.Add(DrawPanel);
        PanelList.Add(JointPanel);
        PanelList.Add(RotationPanel);

        lineBuilder     = DrawPanel.GetComponent <LineBuilder>();
        objectBuilder   = ObjectPanel.GetComponent <ObjectBuilder>();
        jointBuilder    = JointPanel.GetComponent <JointBuilder>();
        rotationBuilder = RotationPanel.GetComponent <RotationBuilder>();
        growthBuilder   = GrowthPanel.GetComponent <GrowthBuilder>();
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     wires.Add(this);
     jb = GetComponent <JointBuilder>();
 }