This is an old revision of the document!

How do I make a replay button? Custom switch of scenes?

The simplest way to make a custom scene change is by opening a state prefab. In PilloTemplate/Prefabs/States you have the prefabs of all screen states. So you create a public variable of type PT_ScreenState in your class where you want the functionality to happend, then drag and drop your wanted screen state from prefabs and force open it. Code below shows you the implementation.

public PT_ScreenState screen_state_to_open;

void OpenPrefabScreenState()
        //-- force open dragged prefab screen state --//