private void AddCircular(GeoCircular geoCircular) { GameObject planeObject = new GameObject(geoCircular.ToString()); planeObject.transform.SetParent(faceWrapper.transform); CircularBehaviour circularBehaviour = planeObject.AddComponent <CircularBehaviour>(); circularBehaviour.Init(geoCircular, geoCamera); circularBehaviour.SetData(geometry.Circular(geoCircular)); circularMap.Add(geoCircular, circularBehaviour); elementMap.Add(geoCircular, circularBehaviour); }
private void UpdateCircular(GeoCircular geoCircular) { CircularBehaviour circularBehaviour = circularMap[geoCircular]; circularBehaviour.SetData(geometry.Circular(geoCircular)); }