Click or drag to resize

Demo_OnTriggerStayCountDown Class

An example of how to use ASL_ObjectCollider OnTriggerStay. Pass a delegate function to ASL_ObjectCollider.ASL_OnTriggerStay(). This function will be called when the objcet collides with another ASLObject.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          SimpleDemosDemo_OnTriggerStayCountDown

Namespace:  SimpleDemos
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class Demo_OnTriggerStayCountDown : MonoBehaviour

The Demo_OnTriggerStayCountDown type exposes the following members.

Constructors
  NameDescription
Public methodDemo_OnTriggerStayCountDown
Initializes a new instance of the Demo_OnTriggerStayCountDown class
Top
Methods
  NameDescription
Private methodcountUpOnStay
Delegate function called by OnTriggerStay by the ASL_ObjectCollider. Sends current count to all clients. This is only exicuted by the PhysicsMaster.
Private methodStart
Private methodstopCounter
Delegate function called by OnTriggerExit by the ASL_ObjectCollider
Private methodUpdate
Private methodupdateCounter
Top
Fields
See Also