示例#1
0
 private void OnButtonMoveStart(object sender, CollisionTriggerActionEventArgs args)
 {
     if (_triggeringBody != null)
     {
         return;
     }
     //Debug.Log("OnButtonMoveStart.");
     if (_status == ButtonStatus.Idle)
     {
         _status         = ButtonStatus.BeingPressed;
         _triggeringBody = args.CollisionTriggeringBody;
     }
 }
示例#2
0
    private void OnButtonMoveStop(object sender, CollisionTriggerActionEventArgs args)
    {
        ICollisionTriggeringBody triggeringBody = args.CollisionTriggeringBody;

        if (_triggeringBody != triggeringBody)
        {
            return;
        }
        //Debug.Log("OnButtonMoveStop.");
        if (_status == ButtonStatus.BeingPressed)
        {
            Release();
        }
        _triggeringBody = null;
    }
 private void GunTriggerEventHandler(object sender, CollisionTriggerActionEventArgs args)
 {
     Shoot();
 }
示例#4
0
 protected void PassTriggerEndEvent(object sender, CollisionTriggerActionEventArgs args)
 {
     //Miscellaneous.InvokeEvent(TriggerEnd, sender, args);
     ChangeTouchableOnReleased();
     //StartCoroutine(Miscellaneous.DelayCoroutine(ChangeTouchableOnReleased, 1));
 }
示例#5
0
 private void PassTriggerStartEvent(object sender, CollisionTriggerActionEventArgs args)
 {
     //Miscellaneous.InvokeEvent(TriggerStart, sender, args);
     ChangeTouchableOnPressed();
     //StartCoroutine(Miscellaneous.DelayCoroutine(ChangeTouchableOnPressed, 1));
 }