Example #1
0
 public void OnUpdate(GuestCtrlNormal ctrl)
 {
     ctrl.m_time -= Time.deltaTime;
     if (ctrl.m_time <= 0.0f)
     {
         ctrl.SetState <CtrlStateExit>();
     }
 }
Example #2
0
 public void OnHitBullet(GuestCtrlNormal ctrl)
 {
     ctrl.SetState <CtrlStateStay>();
 }
Example #3
0
 public void OnNearTarget(GuestCtrlNormal ctrl)
 {
 }
Example #4
0
 public void OnAwake(GuestCtrlNormal ctrl)
 {
     ctrl.m_time = ctrl.m_waitTime;
 }
Example #5
0
 public void OnHitBullet(GuestCtrlNormal ctrl)
 {
 }
Example #6
0
 public void OnDestroyedAttractField(GuestCtrlNormal ctrl)
 {
 }
Example #7
0
 public void OnUpdate(GuestCtrlNormal ctrl)
 {
 }
Example #8
0
 public void OnNearTarget(GuestCtrlNormal ctrl)
 {
     ctrl.SetState <CtrlStateWait>();
 }
Example #9
0
 public void OnAwake(GuestCtrlNormal ctrl)
 {
 }
Example #10
0
 public void OnDestroyedAttractField(GuestCtrlNormal ctrl)
 {
     ctrl.SetNavTarget(ctrl.m_goOutDestination);
 }
Example #11
0
 public void OnNearTarget(GuestCtrlNormal ctrl)
 {
     GameObject.Destroy(ctrl.gameObject);
 }
Example #12
0
 public void OnAwake(GuestCtrlNormal ctrl)
 {
     ctrl.SetNavTarget(ctrl.m_goOutDestination);
 }
Example #13
0
 public void OnHitBullet(GuestCtrlNormal ctrl)
 {
     ctrl.m_time = ctrl.m_stayTime;
 }