void Start() { ActorRef = GetComponent <PC_Base>(); Timeline_Ref = GetComponentInParent <PC_Inst_Timeline>(); NextInput = new PC_Inst_Timeline.Input_Event_st(); NextInput.type = PC_Control.Input_st.NULL; DefPos = GetComponent <Transform>().position; }
void UpdateInputStates() { ///*対応したキャラクターに入力の情報を送る if (NextInput.type != PC_Control.Input_st.Over) { if (NextInput.type != PC_Control.Input_st.NULL) { ActorRef.DispatchEvent(((int)NextInput.type)); } NextInput = Timeline_Ref.FindNext(NextInput); } }
void ResetEvent() { GetComponent <Transform>().position = DefPos; NextInput = Timeline_Ref.GetZero(); }
public void CutException() { NextInput = Timeline_Ref.FindNext(); }