private void OnButtonMoveStart(object sender, CollisionTriggerActionEventArgs args) { if (_triggeringBody != null) { return; } //Debug.Log("OnButtonMoveStart."); if (_status == ButtonStatus.Idle) { _status = ButtonStatus.BeingPressed; _triggeringBody = args.CollisionTriggeringBody; } }
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(); }
protected void PassTriggerEndEvent(object sender, CollisionTriggerActionEventArgs args) { //Miscellaneous.InvokeEvent(TriggerEnd, sender, args); ChangeTouchableOnReleased(); //StartCoroutine(Miscellaneous.DelayCoroutine(ChangeTouchableOnReleased, 1)); }
private void PassTriggerStartEvent(object sender, CollisionTriggerActionEventArgs args) { //Miscellaneous.InvokeEvent(TriggerStart, sender, args); ChangeTouchableOnPressed(); //StartCoroutine(Miscellaneous.DelayCoroutine(ChangeTouchableOnPressed, 1)); }