|
@@ -390,10 +390,10 @@ namespace GFGGame
|
|
|
|
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
- if (_scenePrefab != null)
|
|
|
|
|
|
+ if (_sceneObject != null)
|
|
{
|
|
{
|
|
- GameObject.Destroy(_scenePrefab);
|
|
|
|
- _scenePrefab = null;
|
|
|
|
|
|
+ GameObject.Destroy(_sceneObject);
|
|
|
|
+ _sceneObject = null;
|
|
}
|
|
}
|
|
SceneController.DestroyObjectFromView(_gameObject0);
|
|
SceneController.DestroyObjectFromView(_gameObject0);
|
|
SceneController.DestroyObjectFromView(_gameObject1);
|
|
SceneController.DestroyObjectFromView(_gameObject1);
|