コード例 #1
0
 // Use this for initialization
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     DontDestroyOnLoad(gameObject);
 }
コード例 #2
0
 public void SetPhysicsControl(physicsGameControl newControl)
 {
     gamePhysicsControl = newControl;
 }