public CharaLoadEventArgs(ChaControl _chara, CharaLoadMode _mode, CharaLoadState _state) { ChaControl = _chara; OCIChar = GetOCIChar(_chara); Mode = _mode; State = _state; }
public CharaLoadEventArgs(OICharInfo _chara, CharaLoadMode _mode, CharaLoadState _state) { ChaControl = GetChaControl(_chara); OCIChar = GetOCIChar(_chara); Mode = _mode; State = _state; }
public CharaLoadEventArgs(OCIChar _chara, CharaLoadMode _mode, CharaLoadState _state) { ChaControl = _chara?.charInfo; OCIChar = _chara; Mode = _mode; State = _state; }
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)); }