예제 #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>();
 }