public static void initialize() { //read classifier cls = (Classifier)weka.core.SerializationHelper.read("../../ClassifierNB.model"); EC = new ExperimentControl(); EC.Initialize(); }
private void experimentButton_CheckedChanged(object sender, EventArgs e) { if (experimentButton.Checked) { // removing second side bar from view, if there is one, and removing its context too this.sideBarPanel.Controls.Clear(); this._contentPanel.Controls.Clear(); ExperimentControl experimentControl = new ExperimentControl(); this.sideBarPanel.Controls.Add(experimentControl); currentPanelContent = experimentControl; } }
// Start is called before the first frame update void Awake() { // Checks to make sure this is the only Research Assistant Present in Scene if (control == null) { DontDestroyOnLoad(gameObject); control = this; } else if (control != this) { Destroy(gameObject); } }
private void Awake() { control = GameObject.Find("ExperimentControl").GetComponent <ExperimentControl>(); KeyLogs = control.data; }
void Awake() { this.dataItem = transform.GetChild(0); this.player = GameObject.Find("Player"); this.experimentCtrl = this.player.GetComponent<ExperimentControl>(); }