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