Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Classes | |
class | AllRememberData |
Public Member Functions | |
void | OnSpawn () |
void | AssignLinkedInvInstance (InvInstance invInstance, bool applyRememberData=true, System.Action callback=null) |
IEnumerator | AssignLinkedInvInstanceCo (InvInstance invInstance, bool applyRememberData=true, System.Action callback=null) |
Sets the Inventory Item to link with the object More... | |
void | SaveRememberDataToLinkedInstance () |
void | ShowGUI () |
Properties | |
InvInstance | LinkedInvInstance [get] |
InvItem? | LinkedInvItem [get] |
A scene-object representation of an Inventory item
IEnumerator AC.SceneItem.AssignLinkedInvInstanceCo | ( | InvInstance | invInstance, |
bool | applyRememberData = true , |
||
System.Action | callback = null |
||
) |
Sets the Inventory Item to link with the object
invInstance | The InvInstance to link |
applyRememberData | If True, then any backup data for the SceneItem's Remember components will be applied |
callback | A callback to invoke once the assignment is complete. This may take more than one frame if there is Remember data to apply |
void AC.SceneItem.OnSpawn | ( | ) |
Initialises the component. This needs to be called if the object it is attached to is generated/spawned at runtime manually through code.
void AC.SceneItem.SaveRememberDataToLinkedInstance | ( | ) |
Updates the linked InvInstance with the Remember data of this object and its children
|
get |
The InvInstance that this object represents