BUG:重置游戏会让之前消失的对象复活 ゲームをリセットすると、以前消えたオブジェクトが復活します。Resetting the game will revive previously disappeared objects

最小复现-重置游戏会让之前消失的对象复活.zip (138.2 KB)

描述:
按下空格键可以生成寿命只有5秒的对象;
按下F可以重置游戏(不是F5);
当生成的对象消失后,会因为重置游戏而复活,这是BUG。

説明:
スペースキーを押すと寿命が5秒のオブジェクトが生成されます;
Fを押すとゲームがリセットされます(F5ではありません);
生成されたオブジェクトが消えた後、ゲームがリセットされるために復活します、これがバグです。

Description:
Press the space bar to spawn objects with a lifespan of only 5 seconds;
Press F to reset the game (not F5);
When the generated object disappears, it will be revived by resetting the game, which is a BUG.

补充:
由于刚开始的新游戏(暂时叫做第一世界)生成的会消失的对象,会因为重置游戏(暂时叫做第二世界)而复活,并属于第二世界的对象,那么第三世界就会复活第一+第二世界的对象,第四世界就会复活第一+第二+第三世界的对象,这样的世界轮回会指数级的让对象复活,最终导致性能下降甚至退出游戏。
補足:新しいゲーム(仮に第一世界と呼ぶ)で生成される消失するオブジェクトは、ゲームをリセットする(仮に第二世界と呼ぶ)ことで復活し、第二世界のオブジェクトに属します。次に、第三世界は第一世界と第二世界のオブジェクトを復活させ、第四世界は第一、第二、第三世界のオブジェクトを復活させます。このような世界の輪廻は、オブジェクトを指数関数的に復活させ、最終的に性能が低下し、ゲームが終了する原因となります。
Supplement:
Since the objects that will disappear from the new game (temporarily called the first world) will be resurrected by resetting the game (temporarily called the second world) and belong to the second world, then the third world will resurrect the objects of the first and second worlds, and the fourth world will resurrect the objects of the first and second third worlds.

目前的行为令人感觉ResetGame动作更接近与“重新进入当前场景”,确实有些问题。

该问题已在1.0.16修复

「いいね!」 1