public override void OnClientChangeScene(string sceneNameOrPath, SceneOperation sceneOperation, bool customHandling) { if (customHandling) { clientChangeScene.Invoke(sceneNameOrPath, sceneOperation); } else { base.OnClientChangeScene(sceneNameOrPath, sceneOperation, customHandling); } }
public void InvoceSceneChange(string sceneName, Vector3 characterPosition, float rotation) { sceneChangeEvent.Invoke(sceneName); resetCursorEvent.Invoke(); moveObjectEvent.Invoke(characterPosition, rotation, sceneName); }