public virtual bool CheckIfIsInsideCameraView() { return(!KiltUtils.IsOutOfScreen(gameObject, false, true, false)); /*Camera v_camera = CameraManager.GetCameraThatDrawLayer(gameObject.layer); * if(v_camera != null) * { * Vector2 v_viewPortPos = v_camera.WorldToViewportPoint(transform.position); * if(v_viewPortPos.x >=-0.1 && v_viewPortPos.x <=1.1 && v_viewPortPos.y >=-0.1 && v_viewPortPos.y <=1.1) * { * return true; * } * } * return false;*/ }