public BackgroundController() { totalPlanes = 0; planeSprites = null; planeCameraConnections = null; planeContinuities = null; planeSpeeds = null; planeObjectRows = null; planeObjectColumns = null; planeObjectTotals = null; planeObjects = null; planeRenderers = null; cameraController = null; cameraMaxWorldWidth = 0f; cameraMaxWorldHeight = 0f; cameraMaxHalfWorldWidth = 0f; cameraMaxHalfWorldHeight = 0f; cameraDimensionsValid = false; backgroundDatabase = null; currentBackgroundID = BackgroundDatabase.INVALID_BACKGROUND_ID; backgroundOriginPoint = Vector2.zero; backgroundParent = null; backgroundParent = new GameObject("BackgroundParent"); backgroundParent.transform.position = Vector3.zero; }
public void Clear() { SetCameraController(null); backgroundDatabase = null; currentBackgroundID = BackgroundDatabase.INVALID_BACKGROUND_ID; if (backgroundParent != null) { GameObject.Destroy(backgroundParent); backgroundParent = null; } }
public void SetBackgroundDatabase(BackgroundDatabase newBackgroundDatabase) { backgroundDatabase = newBackgroundDatabase; }