Exemple #1
0
 /// <summary>
 /// Initializes the UI with both BouncingObjectSettings and the parent BasicTrialObjectDesignUI
 /// </summary>
 /// <param name="parentUI">The BasicTrialObjectDesignUI parent.</param>
 /// <param name="settings">The beginning settings of the object.</param>
 public void InitializeUI(BasicTrialObjectDesignUI parentUI, BasicTrialManager.BouncingObjectSettings settings)
 {
     RemoveButton.onClick.AddListener(delegate { parentUI.RemoveTrialObject(this); });
     Tracked.onValueChanged.AddListener(delegate { parentUI.Highlight(false); });
     SetUI(settings);
 }
 /// <summary>
 /// Initializes the UI with settings and the BasicTrialObjectDesignUI parent.
 /// </summary>
 /// <param name="parent">The parent UI displaying this UI.</param>
 /// <param name="settings">The Settings to initialize this display with.</param>
 public void InitializeUI(BasicTrialObjectDesignUI parent, BasicTrialManager.UnusualObjectSettings settings)
 {
     RemoveButton.onClick.AddListener(delegate { parent.RemoveTrialObject(this); });
     SetUI(settings);
 }