public FibPlantNode(FibPlantNode fromNode0, Vector3 position, FibPlantGlobal global0) { fromNode = fromNode0; global = global0; global.nodes.Add(this); index = global.nodes.Count - 1; go = GameObject.CreatePrimitive(PrimitiveType.Cube); go.transform.position = position; UpdateName(); }
void Start() { global = new FibPlantGlobal(); FibPlantNode node = new FibPlantNode(null, Vector3.zero, global); }