/// <summary> /// /// </summary> /// <param name="showable"></param> /// <param name="format"></param> /// <param name="formatProvider"></param> /// <returns></returns> public static String ShowString(IShowable showable, String format, IFormatProvider formatProvider) { int rest = maxLength(format); StringBuilder sb = new StringBuilder(); showable.Show(sb, ref rest, formatProvider); return(sb.ToString()); }
public static string ShowString(IShowable showable, string format, IFormatProvider formatProvider) { var rest = maxLength(format); var stringBuilder = new StringBuilder(); showable.Show(stringBuilder, ref rest, formatProvider); return(stringBuilder.ToString()); }
public void Show(string newState, string oldState) { Init(); if (_showable != null) { _showable.Show(oldState); } else { gameObject.SetActive(true); if (_focusable != null) { _focusable.Focus(); } } }
public void Show(IActivatable activatable) { Init(); _activatable = activatable; _activatable?.Deactivate(); if (_showable != null) { _showable.Show(null); } else { gameObject.SetActive(true); if (_focusable != null) { _focusable.Focus(); } } }