-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use it by making it an AutoLoad in your project
- Loading branch information
1 parent
559f7b7
commit 43d7e52
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
extends Node | ||
|
||
const SeededRandomSequence = preload("./SeededRandomSequence.gd") | ||
var sequence = SeededRandomSequence.new() | ||
|
||
""" | ||
This is a singleton for the SeededRandomSequence | ||
You can add it to your project as a singleton to use globally | ||
To do this, go to Project->Project Settings->AutoLoad and add this script | ||
You can then reference it and get/set seeds and retrieve values | ||
For example, add it as a singleton named SeededRandomSequence and access it like: | ||
SeededRandomSequence.sequence.reset(new_seed) #Optional | ||
var value = SeededRandomSequence.sequence.next() #Get the random value | ||
print(value) | ||
""" | ||
|