コード例 #1
0
 void Awake()
 {
     Instance = this;
     DontDestroyOnLoad(gameObject);
     SceneManager.LoadScene("Openning");
     //SceneManager.LoadScene("Common", LoadSceneMode.Additive);
     loading = false;
     click   = false;;
 }
コード例 #2
0
    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);
    }
コード例 #3
0
    public override void Awake()
    {
        pointLink = true;

        curve = Curve.sin;
        GameObject controler = GameObject.Find("Level");

        sc = controler.GetComponent <SceneControler>() as SceneControler;

        base.Awake();
    }
コード例 #4
0
 private void Start()
 {
     if (sceneControl == null)
     {
         DontDestroyOnLoad(gameObject);
         sceneControl = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
コード例 #5
0
ファイル: BasicSceneControle.cs プロジェクト: nolimet/ARDemo
 public void OpenScene(string name)
 {
     SceneControler.Load(name);
 }