Ejemplo n.º 1
0
        public void OnNodeAdded(ViewModel.Factory factory)
        {
            Node node = App.Resource.Prefab.Node();

            node.SetContext(factory() as ViewModel.INode);
            node.transform.SetParent(transform);
        }
Ejemplo n.º 2
0
		public ActivityLauncher(
			ActivityService activityService, 
			ViewModel.Factory viewModelFactory)
		{
			this.activityService = activityService;
			this.viewModelFactory = viewModelFactory;
		}
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 private void OnNodeAdded(ViewModel.Factory factory)
 {
     node.SetContext(factory() as ViewModel.INode);
     node.OnScaleChanged(80.0f);
 }