public void CloseAllActor() { MiniDramaActorController actorController = this.GetActorController(EventTriggerMiniDrama.ActorManager.GeneralName); if (actorController == null) { return; } actorController.Show(true); actorController.Fade(0.5f, 1f, 3.2f); foreach (string current in this.m_ActorControllerList.Keys) { if (!(current == EventTriggerMiniDrama.ActorManager.GeneralName)) { MiniDramaActorController miniDramaActorController = this.m_ActorControllerList[current]; if (!(miniDramaActorController == null)) { if (miniDramaActorController.RealActor) { miniDramaActorController.Fade(0.8f, 0f, 3.2f); } } } } }
public void FadeActor(string ActorName, float StartValue, float EndValue, float ActionTime) { MiniDramaActorController actorController = this.GetActorController(ActorName); if (actorController == null) { return; } actorController.Fade(StartValue, EndValue, ActionTime); }