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