예제 #1
0
    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();
    }
예제 #2
0
 void Awake()
 {
     cam             = this.GetComponent <Camera>();
     camera_settings = this;
     CalculateScreenDimensions();
 }