public override void Start() { camera_rect = Camera.main.GetComponent <CameraRect>(); leftmost_x = camera_rect.bottomleft.transform.position.x; rightmost_x = camera_rect.topright.transform.position.x; top_y = camera_rect.topright.transform.position.y; BulletPooler.PopulateBulletPool(); }
void Awake() { cam = this.GetComponent <Camera>(); camera_settings = this; CalculateScreenDimensions(); }