public IEnumerable <FatherModel> MapToFatherModel(IEnumerable <Father> fathersList) { IList <FatherModel> returnedFathers = new List <FatherModel>(); foreach (var father in fathersList) { FatherModel retFather = MapToFatherModel(father); returnedFathers.Add(retFather); } return(returnedFathers); }
public FatherModel MapToFatherModel(Father father) { FatherModel retFather = null; try { retFather = _mapper.Map <FatherModel>(father); retFather.FullName = father.Name.FullName(); } catch { retFather = null; } return(retFather); }
public void MoveFather(FatherModel tmpFather) { father.transform.position = new Vector3(tmpFather.Transform.X, tmpFather.Transform.Y, tmpFather.Transform.Z); }
public void InstantiateFather(FatherModel tmpFather) { father = Object.Instantiate(FatherPrefab, new Vector3(tmpFather.Transform.X, tmpFather.Transform.Y, tmpFather.Transform.Z), Quaternion.identity, this.transform); }