Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public void Clear()
 {
     SetCameraController(null);
     backgroundDatabase  = null;
     currentBackgroundID = BackgroundDatabase.INVALID_BACKGROUND_ID;
     if (backgroundParent != null)
     {
         GameObject.Destroy(backgroundParent);
         backgroundParent = null;
     }
 }
Exemplo n.º 3
0
 public void SetBackgroundDatabase(BackgroundDatabase newBackgroundDatabase)
 {
     backgroundDatabase = newBackgroundDatabase;
 }