Click or drag to resize

ObjectToClaim_Example Class

Example of how to claim an object. Every object must be claimed if you want what you are attempting to do to be seen by other players
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          SimpleDemosObjectToClaim_Example

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

The ObjectToClaim_Example type exposes the following members.

Constructors
  NameDescription
Public methodObjectToClaim_Example
Initializes a new instance of the ObjectToClaim_Example class
Top
Methods
  NameDescription
Private methodUpdate
When SendClaim is triggered to true via Unity Editor we will send a claim for this object. We will lose this claim after 1 second of setting SendClaim to false because SendAndSetClaim releases the object back to the server after 1 second
Top
Fields
  NameDescription
Public fieldm_ObjectToClaim
Provides an easy way to access the object we want to claim.
Public fieldSendClaim
Boolean value that the user triggers via the Unity Editor to send or not send a claim
Top
See Also