コード例 #1
0
 public scene(List<gameObject> gameObjects, List<Obstacle> obstacleList, stateGame gameState)
 {
     this.gameObjects = gameObjects;
     this.obstacleList = obstacleList;
     this.gameState = gameState;
     this.sceneControl = sceneControler.next;
 }
コード例 #2
0
ファイル: sceneControler.cs プロジェクト: NicoGlitch/saveLoad
 private void Start()
 {
     if (sceneControl == null)
     {
         DontDestroyOnLoad(gameObject);
         sceneControl = this;
     }
     else
     {
         Destroy(sceneControl);
     }
 }
コード例 #3
0
 public scene(List<gameObject> gameObjects, List<Obstacle> obstacleList, stateGame gameState, sceneControler sceneControl)
 {
     this.gameObjects = gameObjects;
     this.obstacleList = obstacleList;
     this.gameState = gameState;
     if((sceneControl == sceneControler.next) || (sceneControl == sceneControler.previous))
     {
         this.sceneControl = sceneControl;
     }
     else
     {
         this.sceneControl = sceneControler.next;
     }
 }