public void Create(AnimeId oId, AnimeName oName, StudioId oStudioId) { var oAnime = Anime.Create(oId, oName, oStudioId); _oAnimeRepository.Save(oAnime); //TODO: publish events here }
public Task <Unit> Handle(AnimeCreateCommand request, CancellationToken cancellationToken) { var id = new AnimeId(Guid.Parse(request.AnimeId)); var name = new AnimeName(request.AnimeName); var studioId = new StudioId(Guid.Parse(request.StudioId)); AnimeCreator.Create(id, name, studioId); return(new Task <Unit>(() => Unit.Value)); }
public override int GetHashCode() { unchecked { int hash = 23; hash = hash * 17 + AnimeName.GetHashCode(); hash = hash * 17 + Url.GetHashCode(); hash = hash * 17 + Service.GetHashCode(); return(hash); } }
public int CompareTo(DuplicateFileVM obj) { return(AnimeName.CompareTo(obj.AnimeName)); }
void Update() { Vector3 look = camera.transform.rotation * Vector3.forward; Vector3 d = transform.position - camera.transform.position; d = look - d.normalized; if (d.x * d.x + d.y * d.y + d.z * d.z <= 0.03f /*適当*/) { if (outOfCircle) { outOfCircle = false; nowCountTime = choisedTime; choiseCircle.color = new Color(1.0f, 1.0f, 1.0f, 1.0f); } float size = sensitivityRadius * 2 + increaseRadius * nowCountTime / choisedTime; choiseCircle.rectTransform.sizeDelta = new Vector2(size, size); nowCountTime -= Time.deltaTime; if (nowCountTime <= 0.0f) { // SE再生 soundManager.PlayVoice(SoundManager.VOICE_LIST.SELECT_SE); // 次のアニメーションを再生 // Choise1の時のみやる if (gameObject.name == "Choise1(Clone)") { // Qustion A or B if (name == ModelName.Kaoru) { if (kaoruSceneController.choiseAorB == 0) { // 次に再生するアニメーションの名前を強制的に書き換え Debug.Log("質問A"); NextPlayAnime = AnimeName.QuestionA; } else if (kaoruSceneController.choiseAorB == 1) { Debug.Log("質問B"); NextPlayAnime = AnimeName.QuestionB; } else { Debug.Log("File Name Error!"); } } else if (name == ModelName.Yu) { if (yuSceneController.choiseAorB == 0) { NextPlayAnime = AnimeName.QuestionB; } else if (yuSceneController.choiseAorB == 1) { NextPlayAnime = AnimeName.QuestionA; } else { Debug.Log("File Name Error!"); } } else if (name == ModelName.Ran) { if (ranSceneController.choiseAorB == 0) { NextPlayAnime = AnimeName.QuestionB; } else if (ranSceneController.choiseAorB == 1) { NextPlayAnime = AnimeName.QuestionA; } else { Debug.Log("File Name Error!"); } } } model.GetComponent <Animator>().Play(animeNames[(int)NextPlayAnime]); if (gameObject.transform.parent.gameObject.name != "Canvas") { Destroy(gameObject.transform.parent.gameObject); } else { Destroy(gameObject); } } } else if (!outOfCircle) { outOfCircle = true; choiseCircle.color = new Color(1.0f, 1.0f, 1.0f, 0.0f); } }