PixelCrushers.DialogueSystem.PersistentActiveData Class Reference

The persistent active data component works with the PersistentDataManager to set a target game object active or inactive when loading a game (or when applying persistent data between level changes). More...

Inheritance diagram for PixelCrushers.DialogueSystem.PersistentActiveData:
Collaboration diagram for PixelCrushers.DialogueSystem.PersistentActiveData:

Public Member Functions

void OnApplyPersistentData ()
 Listens for an OnApplyPersistentData message from the PersistentDataManager, and sets a target game object accordingly. More...
 
virtual void Check ()
 

Public Attributes

GameObject target
 The target game object. More...
 
Condition condition
 If this condition is true, the target game object is activated; otherwise it's deactivated. More...
 
bool checkOnStart
 When the script starts, check the condition and set the target GameObject active/inactive. More...
 

Protected Member Functions

virtual void Start ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 

Detailed Description

The persistent active data component works with the PersistentDataManager to set a target game object active or inactive when loading a game (or when applying persistent data between level changes).

Inactive game objects don't receive messages. Don't add this component to an inactive game object. Instead, add it to a "manager" object and set the target to the object that you want to activate or deactivate.

Member Function Documentation

◆ Check()

virtual void PixelCrushers.DialogueSystem.PersistentActiveData.Check ( )
virtual

◆ OnApplyPersistentData()

void PixelCrushers.DialogueSystem.PersistentActiveData.OnApplyPersistentData ( )

Listens for an OnApplyPersistentData message from the PersistentDataManager, and sets a target game object accordingly.

◆ OnDisable()

virtual void PixelCrushers.DialogueSystem.PersistentActiveData.OnDisable ( )
protectedvirtual

◆ OnEnable()

virtual void PixelCrushers.DialogueSystem.PersistentActiveData.OnEnable ( )
protectedvirtual

◆ Start()

virtual void PixelCrushers.DialogueSystem.PersistentActiveData.Start ( )
protectedvirtual

Member Data Documentation

◆ checkOnStart

bool PixelCrushers.DialogueSystem.PersistentActiveData.checkOnStart

When the script starts, check the condition and set the target GameObject active/inactive.

◆ condition

Condition PixelCrushers.DialogueSystem.PersistentActiveData.condition

If this condition is true, the target game object is activated; otherwise it's deactivated.

◆ target

GameObject PixelCrushers.DialogueSystem.PersistentActiveData.target

The target game object.


The documentation for this class was generated from the following file: