public void StartFade(IFadeAction arg_fadeAction, Color arg_color, float arg_duration) { m_fadeAction = arg_fadeAction; m_fadeInfo.m_duration = arg_duration; m_fadeInfo.m_fadeObject.color = arg_color; m_fadeAction.OnEnter(this.m_fadeInfo); isActive = true; }
/// <summary> /// フェード開始 /// </summary> /// <param name="arg_fadeAction">実行するフェード</param> /// <param name="arg_color">色</param> /// <param name="arg_duration">フェードにかける時間</param> public void StartFade(IFadeAction arg_fadeAction, Color arg_color, float arg_duration) { m_fadeAction = arg_fadeAction; m_fadeInfo.m_duration = arg_duration; m_fadeInfo.m_fadeObject.color = arg_color; m_fadeAction.OnEnter(this.m_fadeInfo); m_isActive = true; StartCoroutine(OnFading()); }