public void Init(Vector3 localPos, Shape.eColorType colorType) { shapes = GetComponentsInChildren <Shape>(); for (int i = 0; i < shapes.Length; i++) { shapes[i].Init(this, colorType); shapes[i].gameObject.SetActive(false); } ChangeShapeTo <Sphere>(); this.transform.localPosition = localPos; }
public void ChangeColor(Shape.eColorType colorType) { this.shape.ChangeColor(colorType); }