public void SwitchToLastTarget() { GeneralScene scene = GameState.GetLastScene(); if (scene != null) { RunTarget(scene.getId()); } }
public void renderLastScene() { GeneralScene scene = GameState.getLastScene(); if (scene != null) { renderScene(scene.getId()); } }
// Use this for initialization void Start() { this.gameObject.name = sd.getId(); RenderScene(); }