public void OnNodeAdded(ViewModel.Factory factory) { Node node = App.Resource.Prefab.Node(); node.SetContext(factory() as ViewModel.INode); node.transform.SetParent(transform); }
public ActivityLauncher( ActivityService activityService, ViewModel.Factory viewModelFactory) { this.activityService = activityService; this.viewModelFactory = viewModelFactory; }
private void OnSpecializerFieldAdded(ViewModel.Factory factory) { SkillSpecializationField field = App.Resource.Prefab.SkillSpecializerField(); preferredFieldHeight = field.GetComponent <RectTransform>().rect.height; field.SetContext(factory() as ViewModel.SkillSpecializationField); field.transform.SetParent(fieldsContainer, false); }
private void OnNodeAdded(ViewModel.Factory factory) { node.SetContext(factory() as ViewModel.INode); node.OnScaleChanged(80.0f); }