예제 #1
0
        /// <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());
        }
예제 #2
0
파일: Showing.cs 프로젝트: flyer87/C6
        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());
        }
예제 #3
0
 public void Show(string newState, string oldState)
 {
     Init();
     if (_showable != null)
     {
         _showable.Show(oldState);
     }
     else
     {
         gameObject.SetActive(true);
         if (_focusable != null)
         {
             _focusable.Focus();
         }
     }
 }
예제 #4
0
 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();
         }
     }
 }