假设我有这样的设置:
public class Game
{
public static World World;
public static Camera Camera;
public static Player Player;
public Game()
{
World = new World();
Camera = new Camera();
Player = new Player();
}
}
在相机构造函数中,我使用world对象来定位相机,但是我也需要访问world构造函数中的照相机。