-
Notifications
You must be signed in to change notification settings - Fork 90
Scene Class
Komefai edited this page Jan 7, 2018
·
8 revisions
Scene is the base class for all scenes.
public abstract class Scene
You should override these properties.
abstract public string Name { get; }
Name of the scene.
You should override these methods.
abstract public bool Match(ScriptBase script);
Test a condition to match this scene.
abstract public void OnMatched(ScriptBase script);
Called when the scene is matched.
public static Scene Search(ScriptBase script)
Sort by search priority (frequent scenes first).
public static string CreateID(Scene instance, string name)
Create a unique ID for a scene. Format: $"{instance.Name}_{name}"