6 namespace droid.Runtime.Prototyping.Configurables {
10 [AddComponentMenu(ConfigurableComponentMenuPath._ComponentMenuPath
12 + ConfigurableComponentMenuPath._Postfix)]
15 [SerializeField] GameObject active;
16 [SerializeField] GameObject[] children;
17 [SerializeField]
int len;
23 if (!Application.isPlaying) {
27 var la =
new List<GameObject>();
28 foreach (Transform child
in this.transform) {
29 var o = child.gameObject;
35 this.children = la.ToArray();
37 this.len = this.transform.childCount;
39 this.active.SetActive(
true);
42 public override ISpace ConfigurableValueSpace {
get; }
49 if (!Application.isPlaying) {
54 this.active.SetActive(
false);
59 this.active =
this.children[
this.CurrentCategoryValue];
62 this.active.SetActive(
true);
66 return new[] {
new Configuration(this.Identifier,
int.Parse(
Random.Range(0,
this.len).ToString()))};
69 public int CurrentCategoryValue {
get;
set; }
override void ApplyConfiguration(IConfigurableConfiguration configuration)
override Configuration [] SampleConfigurations()
override void PostEnvironmentSetup()