Beispiel #1
0
        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;
		}
Beispiel #3
0
        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);
        }
Beispiel #4
0
 private void OnNodeAdded(ViewModel.Factory factory)
 {
     node.SetContext(factory() as ViewModel.INode);
     node.OnScaleChanged(80.0f);
 }