示例#1
0
 public CharaLoadEventArgs(ChaControl _chara, CharaLoadMode _mode, CharaLoadState _state)
 {
     ChaControl = _chara;
     OCIChar    = GetOCIChar(_chara);
     Mode       = _mode;
     State      = _state;
 }
示例#2
0
 public CharaLoadEventArgs(OICharInfo _chara, CharaLoadMode _mode, CharaLoadState _state)
 {
     ChaControl = GetChaControl(_chara);
     OCIChar    = GetOCIChar(_chara);
     Mode       = _mode;
     State      = _state;
 }
示例#3
0
 public CharaLoadEventArgs(OCIChar _chara, CharaLoadMode _mode, CharaLoadState _state)
 {
     ChaControl = _chara?.charInfo;
     OCIChar    = _chara;
     Mode       = _mode;
     State      = _state;
 }
示例#4
0
            internal static IEnumerator OCIChar_ChangeChara_Coroutine(OCIChar _chara, CharaLoadState _state)
            {
                yield return(new WaitForEndOfFrame());

                yield return(new WaitForEndOfFrame());

                yield return(new WaitForEndOfFrame());

                yield return(new WaitForEndOfFrame());

                Core.DebugLog($"OCIChar_ChangeChara_Postfix_Coroutine [state: {_state}]");

                /*
                 * if (state == CharaLoadState.Post)
                 *      StudioInstance.StartCoroutine(OCIChar_ChangeChara_Coroutine(chara, CharaLoadState.Coroutine));
                 * else
                 */
                OnCharaLoad?.Invoke(null, new CharaLoadEventArgs(_chara, CharaLoadMode.Change, _state));
            }