static public void UpdateTarget(PC_Base NEW) { if (TargetTL != null) { TargetTL.GetComponent <PC_Type_Moover>().controlled = false; } TargetTL = NEW.GetComponentInParent <PC_Inst_Timeline>(); TargetTL.GetComponent <PC_Type_Moover>().controlled = true; }
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; }