public void Setup(DropdownParamater paramaterInfo) { editing = paramaterInfo; paramaterName.text = paramaterInfo.name; selection.ClearOptions(); selection.AddOptions(paramaterInfo.options); selection.value = paramaterInfo.selected; }
public override void Start() { displayName = "Unit Spawn"; paramaters = new Paramater[2]; paramaters[0] = new DecimalParamater("Spawn Inerval (seconds)", 1f); List <string> faceOptions = new List <string> { "Up", "Down", "Left", "Right" }; paramaters[1] = new DropdownParamater("Starting direction", faceOptions); timeToNextSpawn = spawnInterval; base.Start(); }
public override void Start() { displayName = "Rotator"; if (paramaters == null) { paramaters = new Paramater[1]; List <string> faceOptions = new List <string> { "Up", "Down", "Left", "Right" }; paramaters[0] = new DropdownParamater("Turn to face:", faceOptions); } thisType = StructureType.Rotator; base.Start(); }