SaveSlot

This Button is used to create, load or delete games in the Save & Load Main Menu


PROFILE

  • profileID: Index of Save Slot that this Button is related to. Ensure no duplicated profileIDs are assigned.

  • saveSlotsMenu: Reference to SaveSlotsMenu

CONTENT

  • noDataContent: GameObject that gets enabled when the Save Load related to this Profile ID has no data.

  • hasDataContent: GameObject that gets enabled when the Save Load related to this Profile ID has valid data.

  • saveName: Text that displays the current saved scene of this Save Slot.

  • playerLevelText: Text that displays the Player level of this Save Slot.

  • coinsText: Text that displays the Current Currency of this Save Slot.

  • lastPlayedText: Text that displays last time this Save Slot was played.

CLEAR DATA BUTTON

  • clearDataButton: Button that, on clicked, clears this Save Slot Data. This action is assigned automatically.


Functions | SaveSlot.cs

GetProfileId()

Returns Profile ID ( String )

SetInteractable(bool interactable)

Sets Interactable State. If false, the Button cannot be pressed or hovered.

  • interactable: Boolean that controls the Interactable State of the Save Slot Button.

Last updated