Click or drag to resize

GiftingPointsService Class

Service to manage points for all users
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              ImmerseSDK.UIGiftingPointsService

Namespace:  ImmerseSDK.UI
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class GiftingPointsService : SingletonBehaviour

The GiftingPointsService type exposes the following members.

Constructors
  NameDescription
Public methodGiftingPointsService
Initializes a new instance of the GiftingPointsService class
Top
Methods
  NameDescription
Public methodAddPoints
Add points for a user
Public methodCoroutineInitialise
Override this to perform initialisation tasks This coroutine is started in Awake(). To execute code in Awake(), override OnAwake()
(Overrides SingletonBehaviourCoroutineInitialise.)
Public methodForAllUsers
Iterate through all the users we are currently tracking
Protected methodOnAwake
Override this method to call code in the Awake() method (after singleton registration, but before coroutine)
(Overrides SingletonBehaviourOnAwake.)
Protected methodOnDestroy
Unity component method
(Overrides SingletonBehaviourOnDestroy.)
Public methodRemovePoints
Remove points for a user
Top
Events
  NameDescription
Public eventOnUsersUpdated
Event that is fired when a score changed, or a user is added or removed
Top
Fields
  NameDescription
Public fieldStatic memberTestingPointsMenu
Debug variable
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also