void Awake() { Instance = this; DontDestroyOnLoad(gameObject); SceneManager.LoadScene("Openning"); //SceneManager.LoadScene("Common", LoadSceneMode.Additive); loading = false; click = false;; }
public void SceneLoaded(SceneControler newsceneControler) { SceneManager.SetActiveScene(SceneManager.GetSceneByName(LoadedSceneName)); SceneManager.SetActiveScene(SceneManager.GetSceneByName("Game")); currentSceneControler = newsceneControler; GameManager.self.scoreManager.StickmanAmount(currentSceneControler.stickmans.Length, currentSceneControler.ballsAmount); EnableDisableFloor(!currentSceneControler.JumperScene); }
public override void Awake() { pointLink = true; curve = Curve.sin; GameObject controler = GameObject.Find("Level"); sc = controler.GetComponent <SceneControler>() as SceneControler; base.Awake(); }
private void Start() { if (sceneControl == null) { DontDestroyOnLoad(gameObject); sceneControl = this; } else { Destroy(gameObject); } }
public void OpenScene(string name) { SceneControler.Load(name); }