public void selectReform(AbstractReform newSelection) { selectedReform = newSelection; if (newSelection == null) { dropDown.interactable = false; } }
//private Movement(PopUnit firstPop, Country place) : base(place) //{ // members.Add(firstPop); // Country.movements.Add(this); //} private Movement(AbstractReform reform, AbstractReformValue goal, PopUnit firstPop, Country place) : base(place)// : this(firstPop, place) { members.Add(firstPop); Country.movements.Add(this); targetReform = reform; targetReformValue = goal; Flag = Nashet.Flag.Rebels; }
//private Movement(PopUnit firstPop, Country place) : base(place) //{ // members.Add(firstPop); // Country.movements.Add(this); //} private Movement(AbstractReform reform, IReformValue goal, PopUnit firstPop, Country place) : base(place)// : this(firstPop, place) { members.Add(firstPop); Country.Politics.RegisterMovement(this); targetReformType = reform; targetReformValue = goal; Flag = Nashet.Flag.Rebels; }
public void selectReform(AbstractReform newSelection) { selectedReformType = newSelection; if (ReferenceEquals(newSelection, null)) { dropDown.interactable = false; } Refresh(); }
protected void AddButton(string text, AbstractReform type) { GameObject newButton = buttonObjectPool.GetObject(); //newButton.transform.SetParent(contentPanel, false); newButton.transform.SetParent(contentPanel); SampleButton sampleButton = newButton.GetComponent <SampleButton>(); //if (inventionType == null) // sampleButton.Setup(text, this, null); //else sampleButton.Setup(text, this, type); }
internal void RegisterReform(AbstractReform abstractReform) { reforms.Add(abstractReform); reforms.Sort((x, y) => x.ShowOrder - y.ShowOrder); }
private Movement(AbstractReform reform, AbstractReformValue goal, PopUnit firstPop, Country place) : this(firstPop, place) { this.targetReform = reform; this.targetReformValue = goal; }