public void OnUpdate(GuestCtrlImpatient ctrl) { ctrl.m_time -= Time.deltaTime; if (ctrl.m_time <= 0.0f) { ctrl.SetState <CtrlStateExit>(); } }
public void OnAwake(GuestCtrlImpatient ctrl) { if (ctrl.m_unit.topUserId == -1) { ctrl.m_time = ctrl.m_waitTime; } else { ctrl.SetState <CtrlStateExit>(); } }
public void OnAwake(GuestCtrlImpatient ctrl) { // TODO ctrl.SetState <CtrlStateExit>(); }
public void OnNearTarget(GuestCtrlImpatient ctrl) { ctrl.SetState <CtrlStateWait>(); }
public void OnHitBullet(GuestCtrlImpatient ctrl) { ctrl.SetState <CtrlStateStay>(); }