示例#1
0
 protected virtual void Start()
 {
     // Scene名が前のシーンによって与えられていない場合、デフォルト値を用いる。
     if (this.nextScene == null)
     {
         this.nextScene = new NextSceneName {
             targetName = this.defaultNextScene
         };
     }
 }
示例#2
0
 public virtual void SetNextScene(string s)
 {
     if (this.nextScene == null)
     {
         this.nextScene = new NextSceneName {
             targetName = s
         };
     }
     else
     {
         this.nextScene.targetName = s;
     }
 }